Package org.eclipse.draw2d
Class Cursors
java.lang.Object
org.eclipse.draw2d.Cursors
A collection of cursors.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
static final Cursor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Cursor
getDirectionalCursor
(int direction) Returns the cursor corresponding to the given direction, defined inPositionConstants
.static Cursor
getDirectionalCursor
(int direction, boolean isMirrored) Returns the cursor corresponding to the given direction and mirroring.
-
Field Details
-
ARROW
- See Also:
-
SIZEN
- See Also:
-
SIZENE
- See Also:
-
SIZEE
- See Also:
-
SIZESE
- See Also:
-
SIZES
- See Also:
-
SIZESW
- See Also:
-
SIZEW
- See Also:
-
SIZENW
- See Also:
-
APPSTARTING
- See Also:
-
CROSS
- See Also:
-
HAND
- See Also:
-
HELP
- See Also:
-
IBEAM
- See Also:
-
NO
- See Also:
-
SIZEALL
- See Also:
-
SIZENESW
- See Also:
-
SIZENWSE
- See Also:
-
SIZEWE
- See Also:
-
SIZENS
- See Also:
-
UPARROW
- See Also:
-
WAIT
- See Also:
-
-
Constructor Details
-
Cursors
public Cursors()
-
-
Method Details
-
getDirectionalCursor
Returns the cursor corresponding to the given direction, defined inPositionConstants
. Note thatgetDirectionalCursor(int, boolean)
should be used for applications which want to run properly when running in a mirrored environment. The behavior is the same as callinggetDirectionalCursor(direction, false)
.- Parameters:
direction
- the relative direction of the desired cursor- Returns:
- The appropriate directional cursor
-
getDirectionalCursor
Returns the cursor corresponding to the given direction and mirroring. The direction must be one of: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 totrue
, EAST and WEST will be inverted.- Parameters:
direction
- the relative direction of the desired cursorisMirrored
-true
if EAST and WEST should be inverted- Returns:
- The appropriate directional cursor
-