org.jscience.awt
Class AbstractGraphModel

java.lang.Object
  extended by org.jscience.awt.AbstractGraphModel
Direct Known Subclasses:
ArgandDiagramModel, DefaultCategoryGraph2DModel, DefaultGraph2DModel, DefaultGraph3DModel, Point2DListModel

public abstract class AbstractGraphModel
extends java.lang.Object

The AbstractGraphModel class handles the dispatching of GraphDataEvents to interested listeners.


Constructor Summary
AbstractGraphModel()
           
 
Method Summary
 void addGraphDataListener(GraphDataListener l)
          Adds a listener to the list that's notified each time a change to the graph data occurs.
protected  void fireGraphChanged(GraphDataEvent event)
          Notifies all listeners of a given graph data event.
protected  void fireGraphDataChanged()
          Notifies all listeners that the graph data may have changed.
protected  void fireGraphSeriesUpdated(int series)
          Notifies all listeners that a series may have changed.
 void removeGraphDataListener(GraphDataListener l)
          Removes a listener from the list that's notified each time a change to the graph data occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGraphModel

public AbstractGraphModel()
Method Detail

fireGraphDataChanged

protected final void fireGraphDataChanged()
Notifies all listeners that the graph data may have changed.


fireGraphSeriesUpdated

protected final void fireGraphSeriesUpdated(int series)
Notifies all listeners that a series may have changed.

Parameters:
series - DOCUMENT ME!

fireGraphChanged

protected final void fireGraphChanged(GraphDataEvent event)
Notifies all listeners of a given graph data event.

Parameters:
event - DOCUMENT ME!

addGraphDataListener

public final void addGraphDataListener(GraphDataListener l)
Adds a listener to the list that's notified each time a change to the graph data occurs.

Parameters:
l - DOCUMENT ME!

removeGraphDataListener

public final void removeGraphDataListener(GraphDataListener l)
Removes a listener from the list that's notified each time a change to the graph data occurs.

Parameters:
l - DOCUMENT ME!