net.quies.math.plot
Enum ChartType

java.lang.Object
  extended by java.lang.Enum<ChartType>
      extended by net.quies.math.plot.ChartType
All Implemented Interfaces:
Serializable, Comparable<ChartType>

public enum ChartType
extends Enum<ChartType>

Defines the supported charts.

Since:
1.0
Author:
Pascal S. de Kloe
See Also:
ChartStyle.setType(ChartType)

Enum Constant Summary
LINE
          A line chart with straight lines from coordinate to coordinate.
STEP
          A line chart of a step function.
 
Method Summary
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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LINE

public static final ChartType LINE
A line chart with straight lines from coordinate to coordinate.

Since:
1.0

STEP

public static final ChartType STEP
A line chart of a step function.

Since:
1.1
Method Detail

values

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

Returns:
an array containing the constants of this enum type, in the order they're 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