HorizontalAlignment Class

HorizontalAlignment Class

This Package | All Packages

Enum
  |
  +--HorizontalAlignment
public class HorizontalAlignment
extends Enum

Enumeration class that represents horizontal alignment values.

Fields
Name Description
CENTER The data is aligned in the center of the region.
LEFT The data is aligned to the left of the region.
MAX Topic under construction.
MIN Topic under construction.
RIGHT The data is aligned on the right edge of the region.

Methods
Name Description
ensureValid(int value) Throws an exception if the given value is not possible for this class.
valid(int value) Determines whether the given value is allowed by this class.

Fields

HorizontalAlignment.CENTER

Syntax
public static final int CENTER;
Description
The data is aligned in the center of the region.

HorizontalAlignment.LEFT

Syntax
public static final int LEFT;
Description
The data is aligned to the left of the region.

HorizontalAlignment.MAX

Syntax
public static final int MAX;
Description
Topic under construction.

HorizontalAlignment.MIN

Syntax
public static final int MIN;
Description
Topic under construction.

HorizontalAlignment.RIGHT

Syntax
public static final int RIGHT;
Description
The data is aligned on the right edge of the region.

Methods

HorizontalAlignment.ensureValid

Syntax
public static void ensureValid( int value );
Parameters
value
The value to check.
Description

Throws an exception if the given value is not possible for this class.

HorizontalAlignment.valid

Syntax
public static boolean valid( int value );
Parameters
value
The value to check.
Return Value

Returns true if the value is valid; otherwise, returns false.

Description

Determines whether the given value is allowed by this class.