org.xith3d.ui.text2d
Enum TextAlignment

java.lang.Object
  extended by java.lang.Enum<TextAlignment>
      extended by org.xith3d.ui.text2d.TextAlignment
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TextAlignment>

public enum TextAlignment
extends java.lang.Enum<TextAlignment>

Constants for text-alignment


Enum Constant Summary
BOTTOM_CENTER
           
BOTTOM_LEFT
           
BOTTOM_RIGHT
           
CENTER_CENTER
           
CENTER_LEFT
           
CENTER_RIGHT
           
TOP_CENTER
           
TOP_LEFT
           
TOP_RIGHT
           
 
Method Summary
 boolean isBottomAligned()
          Checks wheather this alignment is a vertically bottom alignment
 boolean isHCenterAligned()
          Checks wheather this alignment is a horizontaly centered alignment
 boolean isLeftAligned()
          Checks wheather this alignment is a horizontaly left alignment
 boolean isRightAligned()
          Checks wheather this alignment is a horizontaly right alignment
 boolean isTopAligned()
          Checks wheather this alignment is a vertically top alignment
 boolean isVCenterAligned()
          Checks wheather this alignment is a vertically centered alignment
static TextAlignment valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TextAlignment[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TOP_LEFT

public static final TextAlignment TOP_LEFT

TOP_CENTER

public static final TextAlignment TOP_CENTER

TOP_RIGHT

public static final TextAlignment TOP_RIGHT

CENTER_LEFT

public static final TextAlignment CENTER_LEFT

CENTER_CENTER

public static final TextAlignment CENTER_CENTER

CENTER_RIGHT

public static final TextAlignment CENTER_RIGHT

BOTTOM_LEFT

public static final TextAlignment BOTTOM_LEFT

BOTTOM_CENTER

public static final TextAlignment BOTTOM_CENTER

BOTTOM_RIGHT

public static final TextAlignment BOTTOM_RIGHT
Method Detail

values

public static TextAlignment[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TextAlignment c : TextAlignment.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TextAlignment valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isLeftAligned

public boolean isLeftAligned()
Checks wheather this alignment is a horizontaly left alignment


isHCenterAligned

public boolean isHCenterAligned()
Checks wheather this alignment is a horizontaly centered alignment


isRightAligned

public boolean isRightAligned()
Checks wheather this alignment is a horizontaly right alignment


isTopAligned

public boolean isTopAligned()
Checks wheather this alignment is a vertically top alignment


isVCenterAligned

public boolean isVCenterAligned()
Checks wheather this alignment is a vertically centered alignment


isBottomAligned

public boolean isBottomAligned()
Checks wheather this alignment is a vertically bottom alignment