AnyLogic
Expand
Font size
All Implemented Interfaces:
java.io.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

Constructors 
DataItem()  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
java.util.List<java.util.List<java.lang.Object>> getPlainDataTable()  
double getValue()
Returns the value of the data item
void setValue​(double val)
Sets the value of the data item.
java.lang.String toString()
Returns the textual representation of the data item - the formatted value.
void update()
Should be overridden and call setValue(...) if the user has specified the value for item.
Modifier and Type Method Description

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 Detail

DataItem

public DataItem()

Method Detail

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 java.lang.String toString()
Returns the textual representation of the data item - the formatted value.
Overrides:
toString in class java.lang.Object
Returns:
the formatted value

getPlainDataTable

@AnyLogicInternalAPI
public java.util.List<java.util.List<java.lang.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
How can we improve this article?