jre
登录
|
jre/8
netscape
org
launcher
javafx
com
sun
webkit
media
glass
org
image
java_cup
security
openpisces
source
imageio
prism
javafx
webkit
media
sg
robot
perf
menu
property
image
charts
UnmodifiableArrayList.java
css
binding
tk
stage
application
util
font
beans
animation
PlatformUtil.java
runtime
text
geometry
embed
iio
effect
collections
scene
logging
fxml
jmx
geom
cursor
CursorFrame.java
CursorType.java
ImageCursorFrame.java
StandardCursorFrame.java
event
print
naming
scenario
javadoc
jmx
corba
pisces
java
swing
javax
java
CursorFrame.java
清空
类结构
/* * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.javafx.cursor; import java.util.
HashMap
; import java.util.
Map
; /** * Represents a frame of an animated cursor (ImageCursor created from an * animated image), non animated cursors and standard cursors have only a single * CursorFrame. */ public abstract class
CursorFrame
{ public abstract
CursorType
getCursorType
(); private
Class
<?>
firstPlatformCursorClass
; private
Object
firstPlatformCursor
; private
Map
<
Class
<?>,
Object
>
otherPlatformCursors
; public <T> T
getPlatformCursor
(final
Class
<T>
platformCursorClass
) { if (
firstPlatformCursorClass
==
platformCursorClass
) { return (T)
firstPlatformCursor
; } if (
otherPlatformCursors
!= null) { return (T)
otherPlatformCursors
.
get
(
platformCursorClass
); } return null; } public <T> void
setPlatforCursor
(final
Class
<T>
platformCursorClass
, final T
platformCursor
) { if ((
firstPlatformCursorClass
== null) || (
firstPlatformCursorClass
==
platformCursorClass
)) { // most common case
firstPlatformCursorClass
=
platformCursorClass
;
firstPlatformCursor
=
platformCursor
; return; } if (
otherPlatformCursors
== null) {
otherPlatformCursors
= new
HashMap
<
Class
<?>,
Object
>(); }
otherPlatformCursors
.
put
(
platformCursorClass
,
platformCursor
); } }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口