com.googlecode.charts4j
Enum AxisTextAlignment

java.lang.Object
  extended by java.lang.Enum<AxisTextAlignment>
      extended by com.googlecode.charts4j.AxisTextAlignment
All Implemented Interfaces:
Serializable, Comparable<AxisTextAlignment>

public enum AxisTextAlignment
extends Enum<AxisTextAlignment>

Enumeration for specifying position of label with respect to axis tick mark.

Author:
Julien Chastang (julien.c.chastang at gmail dot com)

Enum Constant Summary
CENTER
          Label position centered above tick mark.
LEFT
          Label position left of tick mark.
RIGHT
          Label position to the right of the text mark.
 
Method Summary
 String toString()
          
static AxisTextAlignment valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AxisTextAlignment[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LEFT

public static final AxisTextAlignment LEFT
Label position left of tick mark.


CENTER

public static final AxisTextAlignment CENTER
Label position centered above tick mark.


RIGHT

public static final AxisTextAlignment RIGHT
Label position to the right of the text mark.

Method Detail

values

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

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

valueOf

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

toString

public String toString()

Overrides:
toString in class Enum<AxisTextAlignment>