Package org.eclipse.draw2d
Class Cursors
java.lang.Object
org.eclipse.draw2d.Cursors
A collection of cursors.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursorstatic final Cursor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CursorgetDirectionalCursor(int direction) Returns the cursor corresponding to the given direction, defined inPositionConstants.static CursorgetDirectionalCursor(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.NORTHPositionConstants.SOUTHPositionConstants.EASTPositionConstants.WESTPositionConstants.NORTH_EASTPositionConstants.NORTH_WESTPositionConstants.SOUTH_EASTPositionConstants.SOUTH_WEST
The behavior is undefined for other values. If
isMirroredis set totrue, EAST and WEST will be inverted.- Parameters:
direction- the relative direction of the desired cursorisMirrored-trueif EAST and WEST should be inverted- Returns:
- The appropriate directional cursor
-