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 int
Used to signify left alignment regardless of orientation (i.e., LTR or RTL)static final int
Used to signify right alignment regardless of orientation (i.e., LTR or RTL)static final int
Bottomstatic final int
Center (Horizontal)static final int
Eaststatic final int
static final int
A constant indicating horizontal directionstatic final int
Leftstatic final int
Bit-wise OR of LEFT, CENTER, and RIGHTstatic final int
Middle (Vertical)static final int
Nonestatic final int
Northstatic final int
static final int
static final int
static final int
North-South-East-West: a bit-wise OR of all 4 directions.static final int
Rightstatic final int
Southstatic final int
static final int
static final int
Topstatic final int
Bit-wise OR of TOP, MIDDLE, and BOTTOMstatic final int
A constant indicating vertical directionstatic final int
West
-
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:
-