borland Packages  Class Hierarchy  dx.text Package 

Alignment interface

com.borland.dx.text.Alignment

About the Alignment interface

Variables  

The Alignment component provides general-purpose two-dimensional alignment constants for aligning an object within a rectangular container. The constants are divided into the following groups. You can select none or one (the maximum) per group:

Horizontal alignment:

Vertical alignment:


Alignment variables

Variables defined in this interface


Alignment variables

ALL

  public static final int ALL = LEFT|CENTER|RIGHT|HSTRETCH|TOP|MIDDLE|BOTTOM|VSTRETCH|VERTICAL|HORIZONTAL
All Alignment constants.

BOTTOM

  public static final int BOTTOM = 0x30
A vertical alignment constant. Aligns vertically along the bottom of the container.

CENTER

  public static final int CENTER = 0x02
A horizontal alignment constant. Centers horizontally within the container object.

HORIZONTAL

  public static final int HORIZONTAL = 0x0F
Used to programmatically filter out the set of vertical alignment bits, leaving only the horizontal alignment.

HSTRETCH

  public static final int HSTRETCH = 0x04
A horizontal alignment constant. Aligns horizontally between the left and right edges of the container, stretching as necessary.

LEFT

  public static final int LEFT = 0x01
A horizontal alignment constant. Aligns to the horizontal left of the container.

MIDDLE

  public static final int MIDDLE = 0x20
A vertical alignment constant. Aligns in the vertical middle of the container.

RIGHT

  public static final int RIGHT = 0x03
A horizontal alignment constant. Aligns horizontally along the right edge of the container.

TOP

  public static final int TOP = 0x10
A vertical alignment constant. Aligns along the top of the container.

UNDEFINED

  public static final int UNDEFINED = 0x00
No alignment constant is defined.

VERTICAL

  public static final int VERTICAL = 0xF0
Used to programmatically filter out the set of horizontal alignment bits, leaving only the vertical alignment.

VSTRETCH

  public static final int VSTRETCH = 0x40
A vertical alignment constant. Aligns vertically between the top and bottom of the container, stretching if necessary.