|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.odesys.chart.DefaultSeries
This class is a default implementation of the Series interface. DefaultSeries depends on methods of the DefaultChartModel rather than the generic ChartModel.
Constructor Summary | |
DefaultSeries(DefaultChartModel model)
Creates a new DefaultSeries instance for the specified DefaultChartModel |
Method Summary | |
ChartElement |
addElement()
Adds a new ChartElement to this DefaultSeries. |
java.util.Enumeration |
elements()
Returns an Enumeration of the ChartElements in this DefaultSeries |
java.awt.Color |
getColor()
Gets the color of this DefaultSeries |
ChartElement |
getElementAt(int index)
Returns the ChartElement at the specified index in this DefaultSeries. |
java.lang.String |
getLabel()
Gets the label of this DefaultSeries |
ChartModel |
getModel()
Gets the ChartModel this DefaultSeries belongs to |
int |
getSize()
Returns the number of ChartElements in this DefaultSeries |
ChartElement |
insertElementAt(int index)
Inserts a new ChartElement to this DefaultSeries at the specified index. |
void |
removeElementAt(int index)
Removes the ChartElement at the specified index |
void |
setColor(java.awt.Color color)
Sets the color of this DefaultSeries |
void |
setLabel(java.lang.String label)
Sets the label of this DefaultSeries |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultSeries(DefaultChartModel model)
Method Detail |
public void setColor(java.awt.Color color)
setColor
in interface Series
public java.awt.Color getColor()
getColor
in interface Series
public void setLabel(java.lang.String label)
setLabel
in interface Series
public java.lang.String getLabel()
getLabel
in interface Series
public ChartModel getModel()
getModel
in interface Series
public int getSize()
getSize
in interface Series
public java.util.Enumeration elements()
elements
in interface Series
public ChartElement addElement()
public ChartElement insertElementAt(int index)
public ChartElement getElementAt(int index)
public void removeElementAt(int index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |