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

    Fields
    Modifier and Type
    Field
    Description
    static 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
    Bottom
    static final int
    Center (Horizontal)
    static final int
    East
    static final int
    East-West: a bit-wise OR of EAST and WEST
    static final int
    A constant indicating horizontal direction
    static final int
    Left
    static final int
    Bit-wise OR of LEFT, CENTER, and RIGHT
    static final int
    Middle (Vertical)
    static final int
    None
    static final int
    North
    static final int
    North-East: a bit-wise OR of NORTH and EAST
    static final int
    North-South: a bit-wise OR of NORTH and SOUTH
    static final int
    North-West: a bit-wise OR of NORTH and WEST
    static final int
    North-South-East-West: a bit-wise OR of all 4 directions.
    static final int
    Right
    static final int
    South
    static final int
    South-East: a bit-wise OR of SOUTH and EAST
    static final int
    South-West: a bit-wise OR of SOUTH and WEST
    static final int
    Top
    static final int
    Bit-wise OR of TOP, MIDDLE, and BOTTOM
    static final int
    A constant indicating vertical direction
    static final int
    West