net.sf.jett.model
Enum Alignment

java.lang.Object
  extended by java.lang.Enum<Alignment>
      extended by net.sf.jett.model.Alignment
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Alignment>

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

Alignments represent the built-in horizontal alignment names that correspond with Excel's horizontal alignment scheme. These are used in conjunction with the alignment property in the style tag. Legal values are the names of the enumeration objects, without underscores, case insensitive, e.g. "center" == "Center" == "CENTER".

Since:
0.4.0
Author:
Randy Gettman
See Also:
StyleTag, StyleParser.PROPERTY_ALIGNMENT

Enum Constant Summary
CENTER
           
CENTERSELECTION
           
DISTRIBUTED
           
FILL
           
GENERAL
           
JUSTIFY
           
LEFT
           
RIGHT
           
 
Method Summary
 short getIndex()
          Returns the index.
 java.lang.String toString()
          Returns the name, in all lowercase, no underscores or spaces.
static Alignment valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Alignment[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CENTER

public static final Alignment CENTER

CENTERSELECTION

public static final Alignment CENTERSELECTION

DISTRIBUTED

public static final Alignment DISTRIBUTED

FILL

public static final Alignment FILL

GENERAL

public static final Alignment GENERAL

JUSTIFY

public static final Alignment JUSTIFY

LEFT

public static final Alignment LEFT

RIGHT

public static final Alignment RIGHT
Method Detail

values

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

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

valueOf

public static Alignment 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

getIndex

public short getIndex()
Returns the index.

Returns:
The index.

toString

public java.lang.String toString()
Returns the name, in all lowercase, no underscores or spaces.

Overrides:
toString in class java.lang.Enum<Alignment>
Returns:
The name, in all lowercase, no underscores or spaces.


Copyright © 2012-2013 Jett Team. All Rights Reserved.