org.umber.crucible.old.layout.style
Interface AlignStyle

All Known Subinterfaces:
AllStyle, AreaStyle
All Known Implementing Classes:
DatumStyleWrapper, DefaultStyle, StyleChain

public interface AlignStyle

The directional orientation of the given area. When referring to a text area, this usually means which edge to slide the text toward. The alignment can also determine which edges a geometric area is attracted to, inside its parent.

Author:
jsheets

Field Summary
static int ALIGN_BOTTOM
          Text should be aligned to the bottom
static int ALIGN_CENTER
          Text should be aligned to the center
static java.lang.String[] ALIGN_ENUM
          Enumeration of text alignment
static int ALIGN_LEFT
          Text should be aligned to the left
static int ALIGN_RIGHT
          Text should be aligned to the right
static int ALIGN_TOP
          Text should be aligned to the top
 
Method Summary
 int getHAlign()
          Returns the horizontal alignment property of the style.
 int getVAlign()
          Returns the vertical alignment property of the style.
 

Field Detail

ALIGN_LEFT

public static final int ALIGN_LEFT
Text should be aligned to the left

See Also:
Constant Field Values

ALIGN_CENTER

public static final int ALIGN_CENTER
Text should be aligned to the center

See Also:
Constant Field Values

ALIGN_RIGHT

public static final int ALIGN_RIGHT
Text should be aligned to the right

See Also:
Constant Field Values

ALIGN_TOP

public static final int ALIGN_TOP
Text should be aligned to the top

See Also:
Constant Field Values

ALIGN_BOTTOM

public static final int ALIGN_BOTTOM
Text should be aligned to the bottom

See Also:
Constant Field Values

ALIGN_ENUM

public static final java.lang.String[] ALIGN_ENUM
Enumeration of text alignment

Method Detail

getHAlign

public int getHAlign()
Returns the horizontal alignment property of the style. The returned value should be one of ALIGN_LEFT, ALIGN_CENTER, or ALIGN_RIGHT.

Returns:
the horizontal alignment

getVAlign

public int getVAlign()
Returns the vertical alignment property of the style. The returned value should be one of ALIGN_TOP, ALIGN_CENTER, or ALIGN_BOTTOM.

Returns:
the vertical alignment