|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.odesys.chart.DefaultChartModel
This is the abstract superclass of all default ChartModel implementations. DefaultChartModel provides the common functionality such as the data Series, the automatic Colors, the ModelChangeListeneres collection etc.
Field Summary | |
protected java.util.Vector |
m_series
|
protected java.util.Vector |
m_seriesData
|
Fields inherited from interface com.odesys.chart.ChartModel |
COLOR, LABEL, SERIES, VALUE |
Constructor Summary | |
DefaultChartModel()
Creates a new DefaultChartModel instance. |
Method Summary | |
ChartElement |
addElement(Series series)
Adds a new ChartElement to the specified series |
void |
addModelChangeListener(ModelChangeListener modelListener)
Adds a listener that is notified each time a change to the data model occurs. |
Series |
addSeries()
Adds a new data Series to this model |
abstract ChartElement |
createChartElement(Series series)
Factory method that creats a ChartElement for the specified Series |
Series |
createSeries()
Factory method that creates a Series instance. |
java.util.Vector |
createSeriesElements(Series series)
Factory method that creates a Vector of ChartElement for the specified Series. |
java.util.Enumeration |
elementsOf(Series series)
Returns an Enumeration of the elements of the specified Series |
void |
fireModelChanged(ModelChangedEvent event)
Notifies all registered ModelChangeListener s that this model has changed. |
ChartElement |
getElementAt(Series series,
int index)
Gets the ChartElement at the specified index in the specified Series |
Series |
getSeriesAt(int index)
Gets the data Series at the specified index |
int |
getSeriesSize()
Gets the number of data Series of this ChartModel |
int |
getSizeOf(Series series)
Gets the number of the elements in the specified Series |
ChartElement |
insertElementAt(Series series,
int index)
Inserts a new ChartElement in the specified series at the specified index |
Series |
insertSeriesAt(int index)
Inserts a new data Series at the specified index |
java.awt.Color |
nextColor()
Returns the next automatic color. |
void |
removeElementAt(Series series,
int index)
Removes the ChartElement at the specified index from the specified series |
void |
removeModelChangeListener(ModelChangeListener modelListener)
Removes a listener from this ChartModel. |
void |
removeSeriesAt(int index)
Removes from this Model the Series at the specified index |
java.util.Enumeration |
series()
Returns an Enumeration of all data Series of this model |
void |
setUpdateLocked(boolean updateLocked)
Determines whether a ModelChangedEvent should be fired. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector m_series
protected java.util.Vector m_seriesData
Constructor Detail |
public DefaultChartModel()
Method Detail |
public void addModelChangeListener(ModelChangeListener modelListener)
ChartModel
addModelChangeListener
in interface ChartModel
public void removeModelChangeListener(ModelChangeListener modelListener)
ChartModel
removeModelChangeListener
in interface ChartModel
public void fireModelChanged(ModelChangedEvent event)
ModelChangeListener
s that this model has changed.fireModelChanged
in interface ChartModel
public void setUpdateLocked(boolean updateLocked)
updateLocked
- If set to true no ModelChangedEvents are fired,
but the hints accumulate to make sure that no changes will
be lost after updateLocked is set back to false.public int getSeriesSize()
ChartModel
getSeriesSize
in interface ChartModel
public java.util.Enumeration series()
ChartModel
series
in interface ChartModel
public int getSizeOf(Series series)
public java.util.Enumeration elementsOf(Series series)
public Series createSeries()
public java.util.Vector createSeriesElements(Series series)
public abstract ChartElement createChartElement(Series series)
public java.awt.Color nextColor()
public Series addSeries()
public Series insertSeriesAt(int index)
public Series getSeriesAt(int index)
public void removeSeriesAt(int index)
public ChartElement addElement(Series series)
public ChartElement insertElementAt(Series series, int index)
public ChartElement getElementAt(Series series, int index)
public void removeElementAt(Series series, int index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |