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 SummaryFieldsModifier 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- 
NONEstatic final int NONENone- See Also:
 
- 
LEFTstatic final int LEFTLeft- See Also:
 
- 
CENTERstatic final int CENTERCenter (Horizontal)- See Also:
 
- 
RIGHTstatic final int RIGHTRight- See Also:
 
- 
LEFT_CENTER_RIGHTstatic final int LEFT_CENTER_RIGHTBit-wise OR of LEFT, CENTER, and RIGHT- See Also:
 
- 
ALWAYS_LEFTstatic final int ALWAYS_LEFTUsed to signify left alignment regardless of orientation (i.e., LTR or RTL)- See Also:
 
- 
ALWAYS_RIGHTstatic final int ALWAYS_RIGHTUsed to signify right alignment regardless of orientation (i.e., LTR or RTL)- See Also:
 
- 
TOPstatic final int TOPTop- See Also:
 
- 
MIDDLEstatic final int MIDDLEMiddle (Vertical)- See Also:
 
- 
BOTTOMstatic final int BOTTOMBottom- See Also:
 
- 
TOP_MIDDLE_BOTTOMstatic final int TOP_MIDDLE_BOTTOMBit-wise OR of TOP, MIDDLE, and BOTTOM- See Also:
 
- 
NORTHstatic final int NORTHNorth- See Also:
 
- 
SOUTHstatic final int SOUTHSouth- See Also:
 
- 
WESTstatic final int WESTWest- See Also:
 
- 
EASTstatic final int EASTEast- See Also:
 
- 
HORIZONTALstatic final int HORIZONTALA constant indicating horizontal direction- See Also:
 
- 
VERTICALstatic final int VERTICALA constant indicating vertical direction- See Also:
 
- 
NORTH_EASTstatic final int NORTH_EAST- See Also:
 
- 
NORTH_WESTstatic final int NORTH_WEST- See Also:
 
- 
SOUTH_EASTstatic final int SOUTH_EAST- See Also:
 
- 
SOUTH_WESTstatic final int SOUTH_WEST- See Also:
 
- 
NORTH_SOUTHstatic final int NORTH_SOUTH- See Also:
 
- 
EAST_WESTstatic final int EAST_WEST- See Also:
 
- 
NSEWstatic final int NSEWNorth-South-East-West: a bit-wise OR of all 4 directions.- See Also:
 
 
-