borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.util 

Alignment class

java.lang.Object
   +----borland.jbcl.util.Alignment

About the Alignment class

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

Horizontal alignment:

Vertical alignment:


Alignment variables

Variables implemented in this class

Alignment properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

Alignment methods

Methods implemented in this class

Methods implemented in java.lang.Object


Alignment variables

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 programatically 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.

VERTICAL

  public static final int VERTICAL = 0xF0
Used to programatically 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.

Alignment methods

valid(int)

  public static final boolean valid(int alignment)
Returns true if the specified value is a valid alignment value. Otherwise, this method returns false.

Parameters:

alignment
Any valid Alignment variable.