Package repast.simphony.chart2
Class AbstractXYSeriesDataSink
- java.lang.Object
-
- repast.simphony.chart2.AbstractXYSeriesDataSink
-
- All Implemented Interfaces:
DataSink
- Direct Known Subclasses:
XYDataSinkSourceSeries
,XYDataSinkValueSeries
public abstract class AbstractXYSeriesDataSink extends Object implements DataSink
-
-
Field Summary
Fields Modifier and Type Field Description protected String
xId
protected BatchUpdateXYSeries
xydata
-
Constructor Summary
Constructors Constructor Description AbstractXYSeriesDataSink(BatchUpdateXYSeries xydata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this DataSink.void
flush()
Flushes any data buffered by this DataSink.String
getXSourceId()
Gets the id of the data source that produces the x value.void
recordEnded()
Notified this DataSink that the current record has ended.void
setXSourceId(String xSourceId)
Sets the id of the data source that produces the x value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface repast.simphony.data2.DataSink
append, open, rowEnded, rowStarted
-
-
-
-
Field Detail
-
xydata
protected BatchUpdateXYSeries xydata
-
xId
protected String xId
-
-
Constructor Detail
-
AbstractXYSeriesDataSink
public AbstractXYSeriesDataSink(BatchUpdateXYSeries xydata)
-
-
Method Detail
-
getXSourceId
public String getXSourceId()
Gets the id of the data source that produces the x value.- Returns:
- the id of the data source that produces the x value.
-
setXSourceId
public void setXSourceId(String xSourceId)
Sets the id of the data source that produces the x value.- Parameters:
xSourceId
- the id of the data source that produces the x value
-
recordEnded
public void recordEnded()
Description copied from interface:DataSink
Notified this DataSink that the current record has ended.- Specified by:
recordEnded
in interfaceDataSink
-
close
public void close()
Description copied from interface:DataSink
Close this DataSink.
-
-