Serializable, Comparable<MousePointerStyle.PointerStyleType>public static enum MousePointerStyle.PointerStyleType extends Enum<MousePointerStyle.PointerStyleType>
| 枚举常量 | 说明 |
|---|---|
ALL_SCROLL |
Mouse pointer style of the all-scroll type, indicating that the page can be scrolled in any direction.
|
CELL |
Mouse pointer style in the shape of a cell.
|
CONTEXT_MENU |
Mouse pointer style that displays a context menu.
|
COPY |
Mouse pointer style indicating that something can be copied.
|
CROSSHAIR |
Mouse pointer style in the shape of a crosshair.
|
DEFAULT_ARROW |
Default mouse pointer style.
|
GRAB |
Mouse pointer style indicating that something can be grabbed.
|
GRABBING |
Mouse pointer style indicating that something is being grabbed.
|
HELP |
Mouse pointer style indicating that you can get some helpful information.
|
HORIZONTAL_RESIZE |
Mouse pointer style indicating that you can change the size in the horizontal direction.
|
NESW_RESIZE |
Mouse pointer style indicating that you can change the size in the direction
between northeast and southwest.
|
NO_DROP |
Mouse pointer style of the no-drop type, indicating that the dragged item cannot be dropped
at the current location of the mouse pointer.
|
NONE |
Mouse pointer style without a type, indicating that no mouse pointer style is displayed.
|
NWSE_RESIZE |
Mouse pointer style indicating that you can change the size in the direction
between northwest and southeast.
|
TEXT |
Mouse pointer style indicating that you can enter text.
|
VERTICAL_RESIZE |
Mouse pointer style indicating that you can change the size in the vertical direction.
|
VERTICAL_TEXT |
Mouse pointer style indicating that you can enter text vertically.
|
WAIT |
Mouse pointer style indicating that you have to wait.
|
ZOOM_IN |
Mouse pointer style indicating that you can zoom in.
|
ZOOM_OUT |
Mouse pointer style indicating that you can zoom out.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static MousePointerStyle.PointerStyleType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static MousePointerStyle.PointerStyleType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (MousePointerStyle.PointerStyleType c : MousePointerStyle.PointerStyleType.values()) System.out.println(c); |
public static final MousePointerStyle.PointerStyleType NONE
public static final MousePointerStyle.PointerStyleType DEFAULT_ARROW
public static final MousePointerStyle.PointerStyleType CONTEXT_MENU
public static final MousePointerStyle.PointerStyleType WAIT
public static final MousePointerStyle.PointerStyleType CROSSHAIR
public static final MousePointerStyle.PointerStyleType TEXT
public static final MousePointerStyle.PointerStyleType VERTICAL_TEXT
public static final MousePointerStyle.PointerStyleType COPY
public static final MousePointerStyle.PointerStyleType HELP
public static final MousePointerStyle.PointerStyleType NO_DROP
public static final MousePointerStyle.PointerStyleType ALL_SCROLL
public static final MousePointerStyle.PointerStyleType CELL
public static final MousePointerStyle.PointerStyleType GRAB
public static final MousePointerStyle.PointerStyleType GRABBING
public static final MousePointerStyle.PointerStyleType HORIZONTAL_RESIZE
public static final MousePointerStyle.PointerStyleType VERTICAL_RESIZE
public static final MousePointerStyle.PointerStyleType NESW_RESIZE
public static final MousePointerStyle.PointerStyleType NWSE_RESIZE
public static final MousePointerStyle.PointerStyleType ZOOM_IN
public static final MousePointerStyle.PointerStyleType ZOOM_OUT
public static MousePointerStyle.PointerStyleType[] values()
for (MousePointerStyle.PointerStyleType c : MousePointerStyle.PointerStyleType.values()) System.out.println(c);
public static MousePointerStyle.PointerStyleType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值