Package org.eclipse.draw2d
Interface PositionConstants
- All Known Subinterfaces:
Orientable
- All Known Implementing Classes:
ArrowButton,Label,PuristicScrollPane.PuristicScrollBar,ScrollBar,Triangle
public interface PositionConstants
Constants representing cardinal directions and relative positions. Some of
these constants can be grouped as follows:
| LEFT, CENTER, RIGHT | Used to describe horizontal position. |
| TOP, MIDDLE, BOTTOM | Used to describe vertical position. |
| NORTH, SOUTH, EAST, WEST | Used to describe the four positions relative to an object's center point.
May also be used when describing which direction an object is facing. NOTE: If you have a use for all four of these possibilities, do not use TOP, BOTTOM, RIGHT, LEFT in place of NORTH, SOUTH, EAST, WEST. |
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUsed to signify left alignment regardless of orientation (i.e., LTR or RTL)static final intUsed to signify right alignment regardless of orientation (i.e., LTR or RTL)static final intBottomstatic final intCenter (Horizontal)static final intEaststatic final intstatic final intA constant indicating horizontal directionstatic final intLeftstatic final intBit-wise OR of LEFT, CENTER, and RIGHTstatic final intMiddle (Vertical)static final intNonestatic final intNorthstatic final intstatic final intstatic final intstatic final intNorth-South-East-West: a bit-wise OR of all 4 directions.static final intRightstatic final intSouthstatic final intstatic final intstatic final intTopstatic final intBit-wise OR of TOP, MIDDLE, and BOTTOMstatic final intA constant indicating vertical directionstatic final intWest
-
Field Details
-
NONE
static final int NONENone- See Also:
-
LEFT
static final int LEFTLeft- See Also:
-
CENTER
static final int CENTERCenter (Horizontal)- See Also:
-
RIGHT
static final int RIGHTRight- See Also:
-
LEFT_CENTER_RIGHT
static final int LEFT_CENTER_RIGHTBit-wise OR of LEFT, CENTER, and RIGHT- See Also:
-
ALWAYS_LEFT
static final int ALWAYS_LEFTUsed to signify left alignment regardless of orientation (i.e., LTR or RTL)- See Also:
-
ALWAYS_RIGHT
static final int ALWAYS_RIGHTUsed to signify right alignment regardless of orientation (i.e., LTR or RTL)- See Also:
-
TOP
static final int TOPTop- See Also:
-
MIDDLE
static final int MIDDLEMiddle (Vertical)- See Also:
-
BOTTOM
static final int BOTTOMBottom- See Also:
-
TOP_MIDDLE_BOTTOM
static final int TOP_MIDDLE_BOTTOMBit-wise OR of TOP, MIDDLE, and BOTTOM- See Also:
-
NORTH
static final int NORTHNorth- See Also:
-
SOUTH
static final int SOUTHSouth- See Also:
-
WEST
static final int WESTWest- See Also:
-
EAST
static final int EASTEast- See Also:
-
HORIZONTAL
static final int HORIZONTALA constant indicating horizontal direction- See Also:
-
VERTICAL
static final int VERTICALA constant indicating vertical direction- See Also:
-
NORTH_EAST
static final int NORTH_EAST- See Also:
-
NORTH_WEST
static final int NORTH_WEST- See Also:
-
SOUTH_EAST
static final int SOUTH_EAST- See Also:
-
SOUTH_WEST
static final int SOUTH_WEST- See Also:
-
NORTH_SOUTH
static final int NORTH_SOUTH- See Also:
-
EAST_WEST
static final int EAST_WEST- See Also:
-
NSEW
static final int NSEWNorth-South-East-West: a bit-wise OR of all 4 directions.- See Also:
-