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.


Variable Index

 o CHARTTYPES
Available chart types.
 o DEFAULT_CHARTTYPE
Default Chart Type: Vertical Bar Chart.
 o HORIZONTALBARCHART
Horizontal Bar Chart Type.
 o LINECHART
Line Chart Type.
 o PIECHART
Pie Chart Type.
 o types
Strings representing the available types of charts
 o VERTICALBARCHART
Vertical Bar Chart Type.

Constructor Index

 o ChartType(int)
Constructor for a specific chart type.

Method Index

 o equals(Object)
Checks for equality of two ChartType values.
 o getValue()
Retrieves the label for the currently selected chart type.
 o toString()
Returns the string representation of the currently selected ChartType.

Variables

 o types
 public static final String types[]
Strings representing the available types of charts

 o VERTICALBARCHART
 public static final ChartType VERTICALBARCHART
Vertical Bar Chart Type.

 o HORIZONTALBARCHART
 public static final ChartType HORIZONTALBARCHART
Horizontal Bar Chart Type.

 o LINECHART
 public static final ChartType LINECHART
Line Chart Type.

 o PIECHART
 public static final ChartType PIECHART
Pie Chart Type.

 o DEFAULT_CHARTTYPE
 public static final ChartType DEFAULT_CHARTTYPE
Default Chart Type: Vertical Bar Chart.

 o CHARTTYPES
 public static final ChartType CHARTTYPES[]
Available chart types.

Constructors

 o 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

Methods

 o getValue
 public int getValue()
Retrieves the label for the currently selected chart type.

 o 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
 o 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