AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable

public class DataItem
extends ChartItem
A chart item that contains a single scalar value of type double.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
DataItem() 

Method Summary

Modifier and TypeMethodDescription
List<List<Object>>getPlainDataTable() 
final doublegetValue()
Returns the value of the data item
voidsetValue(double val)
Sets the value of the data item.
StringtoString()
Returns the textual representation of the data item - the formatted value.
voidupdate()
Should be overridden and call setValue(...) if the user has specified the value for item.

Methods inherited from class com.anylogic.engine.analysis.ChartItem

getVersion

Methods inherited from class java.lang.Object

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

Constructor Details

DataItem

public DataItem()

Method Details

setValue

public void setValue(double val)
Sets the value of the data item.
Parameters:
val - the new value of the data item

getValue

public final double getValue()
Returns the value of the data item
Returns:
the value of the data item

toString

public String toString()
Returns the textual representation of the data item - the formatted value.
Overrides:
toString in class Object
Returns:
the formatted value

getPlainDataTable

@AnyLogicInternalAPI
public List<List<Object>> getPlainDataTable()

update

public void update()
Should be overridden and call setValue(...) if the user has specified the value for item. By default does nothing.
Overrides:
update in class ChartItem