AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BasicDataSet, DataItem, Histogram2DData, HistogramData

public class ChartItem
extends Object
implements Serializable
An item that holds data and can be displayed by a chart (a unit of what can be displayed by the chart). Can be a single scalar value or a set of values. This base class just has an update() method.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
ChartItem() 

Method Summary

Modifier and TypeMethodDescription
longgetVersion()
Returns the version of this chart item.
voidupdate()
Should be overridden and perform chart-dependent update.
By default does nothing.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

ChartItem

public ChartItem()

Method Details

update

public void update()
Should be overridden and perform chart-dependent update.
By default does nothing.

getVersion

public long getVersion()
Returns the version of this chart item. The version is incremented with each and any change of the item.
Returns:
the version of this chart item