All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.beans.charting.ChartType
java.lang.Object
|
+----COM.ibm.beans.charting.ChartType
- public class ChartType
- extends Object
- implements Serializable
An enumeration class that defines the behaviour of an enumerated Chart Type property
of a Charting Bean, and provides the necessary behaviour to support a GUI Property Editor
for an enumeration of chart types.
Hence, this class also maintains the "state" (currently selected value) of the enumeration property.
-
CHARTTYPES
- Available chart types.
-
DEFAULT_CHARTTYPE
- Default Chart Type: Vertical Bar Chart.
-
HORIZONTALBARCHART
- Horizontal Bar Chart Type.
-
LINECHART
- Line Chart Type.
-
PIECHART
- Pie Chart Type.
-
types
- Strings representing the available types of charts
-
VERTICALBARCHART
- Vertical Bar Chart Type.
-
ChartType(int)
- Constructor for a specific chart type.
-
equals(Object)
- Checks for equality of two ChartType values.
-
getValue()
- Retrieves the label for the currently selected chart type.
-
toString()
- Returns the string representation of the currently selected ChartType.
types
public static final String types[]
- Strings representing the available types of charts
VERTICALBARCHART
public static final ChartType VERTICALBARCHART
- Vertical Bar Chart Type.
HORIZONTALBARCHART
public static final ChartType HORIZONTALBARCHART
- Horizontal Bar Chart Type.
LINECHART
public static final ChartType LINECHART
- Line Chart Type.
PIECHART
public static final ChartType PIECHART
- Pie Chart Type.
DEFAULT_CHARTTYPE
public static final ChartType DEFAULT_CHARTTYPE
- Default Chart Type: Vertical Bar Chart.
CHARTTYPES
public static final ChartType CHARTTYPES[]
- Available chart types.
ChartType
public ChartType(int value)
- Constructor for a specific chart type.
Checks for validity of the type, and set the currently selected value
to be the one specified.
- Parameters:
- value - is the
getValue
public int getValue()
- Retrieves the label for the currently selected chart type.
equals
public boolean equals(Object type)
- Checks for equality of two ChartType values.
- Parameters:
- type - the ChartType to compare with
- Overrides:
- equals in class Object
toString
public String toString()
- Returns the string representation of the currently selected ChartType.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index