Package repast.simphony.chart2
Class BatchUpdateXYSeries
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.xy.AbstractXYDataset
org.jfree.data.xy.AbstractIntervalXYDataset
org.jfree.data.xy.XYSeriesCollection
repast.simphony.chart2.BatchUpdateXYSeries
- All Implemented Interfaces:
VetoableChangeListener
,ObjectInputValidation
,Serializable
,Cloneable
,EventListener
,org.jfree.data.DomainInfo
,org.jfree.data.general.Dataset
,org.jfree.data.general.SeriesChangeListener
,org.jfree.data.general.SeriesDataset
,org.jfree.data.RangeInfo
,org.jfree.data.xy.IntervalXYDataset
,org.jfree.data.xy.XYDataset
,org.jfree.util.PublicCloneable
public class BatchUpdateXYSeries
extends org.jfree.data.xy.XYSeriesCollection
Overrides some methods in XYSeriesCollection in order to avoid updates
whenever a single point is added.
- Author:
- Nick Collier
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSeries
(org.jfree.data.xy.XYSeries series) boolean
protected void
notifyListeners
(org.jfree.data.general.DatasetChangeEvent evt) void
setRunning
(boolean running) Tells this BatchUpdateXYSeries whether the sim is running or not.void
setUpdate
(boolean update) void
update()
Notifies listeners thatMethods inherited from class org.jfree.data.xy.XYSeriesCollection
clone, equals, getDomainBounds, getDomainLowerBound, getDomainOrder, getDomainUpperBound, getEndX, getEndY, getIntervalPositionFactor, getIntervalWidth, getItemCount, getRangeBounds, getRangeLowerBound, getRangeUpperBound, getSeries, getSeries, getSeries, getSeriesCount, getSeriesIndex, getSeriesKey, getStartX, getStartY, getX, getY, hashCode, indexOf, isAutoWidth, removeAllSeries, removeSeries, removeSeries, setAutoWidth, setIntervalPositionFactor, setIntervalWidth, vetoableChange
Methods inherited from class org.jfree.data.xy.AbstractIntervalXYDataset
getEndXValue, getEndYValue, getStartXValue, getStartYValue
Methods inherited from class org.jfree.data.xy.AbstractXYDataset
getXValue, getYValue
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChanged
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, fireDatasetChanged, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
Methods inherited from interface org.jfree.data.xy.IntervalXYDataset
getEndXValue, getEndYValue, getStartXValue, getStartYValue
Methods inherited from interface org.jfree.data.general.SeriesDataset
indexOf
Methods inherited from interface org.jfree.data.xy.XYDataset
getXValue, getYValue
-
Constructor Details
-
BatchUpdateXYSeries
public BatchUpdateXYSeries(int plotRangeLength)
-
-
Method Details
-
setUpdate
public void setUpdate(boolean update) -
notifyListeners
protected void notifyListeners(org.jfree.data.general.DatasetChangeEvent evt) - Overrides:
notifyListeners
in classorg.jfree.data.general.AbstractDataset
-
update
public void update()Notifies listeners that -
isRunning
public boolean isRunning()- Returns:
- the running
-
setRunning
public void setRunning(boolean running) Tells this BatchUpdateXYSeries whether the sim is running or not.- Parameters:
running
-
-
addSeries
public void addSeries(org.jfree.data.xy.XYSeries series) - Overrides:
addSeries
in classorg.jfree.data.xy.XYSeriesCollection
-