org.jppf.ui.monitoring.charts
Enum ChartType

java.lang.Object
  extended by java.lang.Enum<ChartType>
      extended by org.jppf.ui.monitoring.charts.ChartType
All Implemented Interfaces:
Serializable, Comparable<ChartType>

public enum ChartType
extends Enum<ChartType>

Type-safe enumeration of all available types of charts.

Author:
Laurent Cohen

Enum Constant Summary
CHART_3DBAR
          Chart type definition for a 3D bar chart.
CHART_3DPIE
          Chart type definition for a plot XY chart.
CHART_AREA
          Chart type definition for a plot XY chart.
CHART_DIFFERENCE
          Chart type definition for a plot XY chart.
CHART_PLOTXY
          Chart type definition for a plot XY chart.
CHART_RING
          Chart type definition for a plot XY chart.
 
Method Summary
 String toString()
          Get a nice display name for this enum type.
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

CHART_3DBAR

public static final ChartType CHART_3DBAR
Chart type definition for a 3D bar chart.


CHART_PLOTXY

public static final ChartType CHART_PLOTXY
Chart type definition for a plot XY chart.


CHART_AREA

public static final ChartType CHART_AREA
Chart type definition for a plot XY chart.


CHART_3DPIE

public static final ChartType CHART_3DPIE
Chart type definition for a plot XY chart.


CHART_RING

public static final ChartType CHART_RING
Chart type definition for a plot XY chart.


CHART_DIFFERENCE

public static final ChartType CHART_DIFFERENCE
Chart type definition for a plot XY 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()
Get a nice display name for this enum type.

Overrides:
toString in class Enum<ChartType>
Returns:
the name as a string.
See Also:
Enum.toString()


Copyright © 2005-2010 JPPF Team.