org.odftoolkit.simple.chart
Enum ChartType

java.lang.Object
  extended by java.lang.Enum<ChartType>
      extended by org.odftoolkit.simple.chart.ChartType
All Implemented Interfaces:
Serializable, Comparable<ChartType>

public enum ChartType
extends Enum<ChartType>

The value set of chart type.

Since:
0.6

Enum Constant Summary
AREA
          AREA, The area type chart
BAR
          BAR, The bar type chart
LINE
          LINE, The line type chart
PIE
          PIE, The pie type chart
RADAR
          RADAR, The radar type chart
RING
          RING, The ring type chart
SCATTER
          SCATTER, The scatter type chart
STOCK
          STOCK, The stock type chart
 
Method Summary
static ChartType enumValueOf(String mString)
          Returns the enum of ChartType string.
 String toString()
           
static ChartType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ChartType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BAR

public static final ChartType BAR
BAR, The bar type chart


PIE

public static final ChartType PIE
PIE, The pie type chart


RING

public static final ChartType RING
RING, The ring type chart


AREA

public static final ChartType AREA
AREA, The area type chart


LINE

public static final ChartType LINE
LINE, The line type chart


SCATTER

public static final ChartType SCATTER
SCATTER, The scatter type chart


RADAR

public static final ChartType RADAR
RADAR, The radar type chart


STOCK

public static final ChartType STOCK
STOCK, The stock type chart

Method Detail

values

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

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

valueOf

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

toString

public String toString()
Overrides:
toString in class Enum<ChartType>

enumValueOf

public static ChartType enumValueOf(String mString)
Returns the enum of ChartType string.

Parameters:
mString - the string value
Returns:
the enum of ChartType.


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.