lt.monarch.chart.models
Enum DataColumnType

java.lang.Object
  extended by java.lang.Enum<DataColumnType>
      extended by lt.monarch.chart.models.DataColumnType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DataColumnType>

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

Data model constants


Enum Constant Summary
Enum Constant and Description
BAR_WIDTH
          Sets bar width as double number
DATE_FORMAT
          Sets date format as a pattern string
EXTENT
          Extent column, which usually corresponds to elevation value, or error value
EXTRA
          Extra column, which usually corresponds to asymmetric error value
EXTRA2
          Second Extra column, which is usually used in financial charts
EXTRA3
          Third Extra column, which is left for user usage
GROUP_NAME
          Sets data grouping name
HINT
          Sets hint label as string or number
KEY
          Key data column, which usually corresponds to X value
LABEL
          Sets label text as string or number
LABEL_IMAGE
          Sets image data for pie label
NUMBER_FORMAT
          Sets number format as a pattern string
PIE_EXPLODE
          Sets pie exploding as double number
PIE_HEIGHT
          Sets pie height as double number
STYLE
          Sets style data as a Styles object
VALUE
          Value data column, which usually corresponds to Y value
 
Method Summary
Modifier and Type Method and Description
static DataColumnType getByIndex(int index)
          Gets DataColumnType by index.
static DataColumnType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DataColumnType[] 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

KEY

public static final DataColumnType KEY
Key data column, which usually corresponds to X value


VALUE

public static final DataColumnType VALUE
Value data column, which usually corresponds to Y value


EXTENT

public static final DataColumnType EXTENT
Extent column, which usually corresponds to elevation value, or error value


EXTRA

public static final DataColumnType EXTRA
Extra column, which usually corresponds to asymmetric error value


EXTRA2

public static final DataColumnType EXTRA2
Second Extra column, which is usually used in financial charts


EXTRA3

public static final DataColumnType EXTRA3
Third Extra column, which is left for user usage


BAR_WIDTH

public static final DataColumnType BAR_WIDTH
Sets bar width as double number


LABEL

public static final DataColumnType LABEL
Sets label text as string or number


PIE_EXPLODE

public static final DataColumnType PIE_EXPLODE
Sets pie exploding as double number


PIE_HEIGHT

public static final DataColumnType PIE_HEIGHT
Sets pie height as double number


NUMBER_FORMAT

public static final DataColumnType NUMBER_FORMAT
Sets number format as a pattern string


STYLE

public static final DataColumnType STYLE
Sets style data as a Styles object


DATE_FORMAT

public static final DataColumnType DATE_FORMAT
Sets date format as a pattern string


HINT

public static final DataColumnType HINT
Sets hint label as string or number


GROUP_NAME

public static final DataColumnType GROUP_NAME
Sets data grouping name


LABEL_IMAGE

public static final DataColumnType LABEL_IMAGE
Sets image data for pie label

Method Detail

values

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

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

valueOf

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

getByIndex

public static DataColumnType getByIndex(int index)
Gets DataColumnType by index.

Parameters:
index - of DataColumnType
Returns:
DataColumnType