public class Cursors
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Cursor |
APPSTARTING |
static Cursor |
ARROW |
static Cursor |
CROSS |
static Cursor |
HAND |
static Cursor |
HELP |
static Cursor |
IBEAM |
static Cursor |
NO |
static Cursor |
SIZEALL |
static Cursor |
SIZEE |
static Cursor |
SIZEN |
static Cursor |
SIZENE |
static Cursor |
SIZENESW |
static Cursor |
SIZENS |
static Cursor |
SIZENW |
static Cursor |
SIZENWSE |
static Cursor |
SIZES |
static Cursor |
SIZESE |
static Cursor |
SIZESW |
static Cursor |
SIZEW |
static Cursor |
SIZEWE |
static Cursor |
UPARROW |
static Cursor |
WAIT |
| Constructor and Description |
|---|
Cursors() |
| Modifier and Type | Method and Description |
|---|---|
static Cursor |
getDirectionalCursor(int direction)
Returns the cursor corresponding to the given direction, defined in
PositionConstants. |
static Cursor |
getDirectionalCursor(int direction,
boolean isMirrored)
Returns the cursor corresponding to the given direction and mirroring.
|
public static final Cursor ARROW
SWT.CURSOR_ARROWpublic static final Cursor SIZEN
SWT.CURSOR_SIZENpublic static final Cursor SIZENE
SWT.CURSOR_SIZENEpublic static final Cursor SIZEE
SWT.CURSOR_SIZEEpublic static final Cursor SIZESE
SWT.CURSOR_SIZESEpublic static final Cursor SIZES
SWT.CURSOR_SIZESpublic static final Cursor SIZESW
SWT.CURSOR_SIZESWpublic static final Cursor SIZEW
SWT.CURSOR_SIZEWpublic static final Cursor SIZENW
SWT.CURSOR_SIZENWpublic static final Cursor APPSTARTING
SWT.CURSOR_APPSTARTINGpublic static final Cursor CROSS
SWT.CURSOR_CROSSpublic static final Cursor HAND
SWT.CURSOR_HANDpublic static final Cursor HELP
SWT.CURSOR_HELPpublic static final Cursor IBEAM
SWT.CURSOR_IBEAMpublic static final Cursor NO
SWT.CURSOR_NOpublic static final Cursor SIZEALL
SWT.CURSOR_SIZEALLpublic static final Cursor SIZENESW
SWT.CURSOR_SIZENESWpublic static final Cursor SIZENWSE
SWT.CURSOR_SIZENWSEpublic static final Cursor SIZEWE
SWT.CURSOR_SIZEWEpublic static final Cursor SIZENS
SWT.CURSOR_SIZENSpublic static final Cursor UPARROW
SWT.CURSOR_UPARROWpublic static final Cursor WAIT
SWT.CURSOR_WAITpublic static Cursor getDirectionalCursor(int direction)
PositionConstants. Note that
getDirectionalCursor(int, boolean) should be used for
applications which want to run properly when running in a mirrored
environment. The behavior is the same as calling
getDirectionalCursor(direction, false).direction - the relative direction of the desired cursorpublic static Cursor getDirectionalCursor(int direction, boolean isMirrored)
PositionConstants.NORTH
PositionConstants.SOUTH
PositionConstants.EAST
PositionConstants.WEST
PositionConstants.NORTH_EAST
PositionConstants.NORTH_WEST
PositionConstants.SOUTH_EAST
PositionConstants.SOUTH_WEST
The behavior is undefined for other values. If isMirrored is
set to true, EAST and WEST will be inverted.
direction - the relative direction of the desired cursorisMirrored - true if EAST and WEST should be invertedCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.