Package repast.simphony.chart2
Class HistogramDataSink
java.lang.Object
repast.simphony.chart2.HistogramDataSink
- All Implemented Interfaces:
DataSink
DataSink that passes data on to a HistogramDataSet.
- Author:
- Nick Collier
-
Constructor Summary
ConstructorsConstructorDescriptionHistogramDataSink(String sourceId, AbstractHistogramDataset data) Creates a HistogramDataSink that will update the specified histogram dataset with data from the specified source id. -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends the specified data to this sink.voidclose()Close this DataSink.voidflush()Flushes any data buffered by this DataSink.voidOpen this DataSink.voidNotified this DataSink that the current record has ended.voidrowEnded()Notifies this DataSink that the last append was end of a "row."voidNotifies this DataSink that the next append is that start of a "row." of data.
-
Constructor Details
-
HistogramDataSink
Creates a HistogramDataSink that will update the specified histogram dataset with data from the specified source id.- Parameters:
data-sourceId-
-
-
Method Details
-
open
Description copied from interface:DataSinkOpen this DataSink. -
rowStarted
public void rowStarted()Description copied from interface:DataSinkNotifies this DataSink that the next append is that start of a "row." of data.- Specified by:
rowStartedin interfaceDataSink
-
append
Description copied from interface:DataSinkAppends the specified data to this sink. The key can be, for example, a column name and the value the current value for that column. -
rowEnded
public void rowEnded()Description copied from interface:DataSinkNotifies this DataSink that the last append was end of a "row." -
recordEnded
public void recordEnded()Description copied from interface:DataSinkNotified this DataSink that the current record has ended.- Specified by:
recordEndedin interfaceDataSink
-
flush
public void flush()Description copied from interface:DataSinkFlushes any data buffered by this DataSink. -
close
public void close()Description copied from interface:DataSinkClose this DataSink.
-