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_ARROW
public static final Cursor SIZEN
SWT.CURSOR_SIZEN
public static final Cursor SIZENE
SWT.CURSOR_SIZENE
public static final Cursor SIZEE
SWT.CURSOR_SIZEE
public static final Cursor SIZESE
SWT.CURSOR_SIZESE
public static final Cursor SIZES
SWT.CURSOR_SIZES
public static final Cursor SIZESW
SWT.CURSOR_SIZESW
public static final Cursor SIZEW
SWT.CURSOR_SIZEW
public static final Cursor SIZENW
SWT.CURSOR_SIZENW
public static final Cursor APPSTARTING
SWT.CURSOR_APPSTARTING
public static final Cursor CROSS
SWT.CURSOR_CROSS
public static final Cursor HAND
SWT.CURSOR_HAND
public static final Cursor HELP
SWT.CURSOR_HELP
public static final Cursor IBEAM
SWT.CURSOR_IBEAM
public static final Cursor NO
SWT.CURSOR_NO
public static final Cursor SIZEALL
SWT.CURSOR_SIZEALL
public static final Cursor SIZENESW
SWT.CURSOR_SIZENESW
public static final Cursor SIZENWSE
SWT.CURSOR_SIZENWSE
public static final Cursor SIZEWE
SWT.CURSOR_SIZEWE
public static final Cursor SIZENS
SWT.CURSOR_SIZENS
public static final Cursor UPARROW
SWT.CURSOR_UPARROW
public static final Cursor WAIT
SWT.CURSOR_WAIT
public 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.