com.flagstone.transform.datatype
Enum HorizontalAlign

java.lang.Object
  extended by java.lang.Enum<HorizontalAlign>
      extended by com.flagstone.transform.datatype.HorizontalAlign
All Implemented Interfaces:
Serializable, Comparable<HorizontalAlign>

public enum HorizontalAlign
extends Enum<HorizontalAlign>

HorizontalAlign is used to set the alignment of text displayed in dynamic text fields and the registration point for displaying images.


Enum Constant Summary
CENTER
          The item displayed is centre aligned.
JUSTIFY
          The item displayed is justified.
LEFT
          The item displayed is left aligned.
RIGHT
          The item displayed is right aligned.
 
Method Summary
static HorizontalAlign valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HorizontalAlign[] 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

LEFT

public static final HorizontalAlign LEFT
The item displayed is left aligned.


RIGHT

public static final HorizontalAlign RIGHT
The item displayed is right aligned.


CENTER

public static final HorizontalAlign CENTER
The item displayed is centre aligned.


JUSTIFY

public static final HorizontalAlign JUSTIFY
The item displayed is justified.

Method Detail

values

public static HorizontalAlign[] 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 (HorizontalAlign c : HorizontalAlign.values())
    System.out.println(c);

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

valueOf

public static HorizontalAlign valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.