Package com.anylogic.engine.analysis
- java.lang.Object
- com.anylogic.engine.analysis.ChartItem
- com.anylogic.engine.analysis.DataItem
- 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 | Description |
---|---|
DataItem() |
Modifier and Type | Method | Description |
---|---|---|
List<List<Object>> | getPlainDataTable() | |
final double | getValue() |
Returns the value of the data item
|
void | setValue |
Sets the value of the data item.
|
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.
|
public DataItem()
public void setValue(double val)
Sets the value of the data item.
- Parameters:
val
- the new value of the data item
public final double getValue()
Returns the value of the data item
- Returns:
- the value of the data item
public String toString()
Returns the textual representation of the data item -
the formatted value.
@AnyLogicInternalAPI public List<List<Object>> getPlainDataTable()
public void update()
Should be overridden and call setValue(...) if the user has
specified the value for item.
By default does nothing.