com.xj.anylogic.engine.analysis
Class DataItem

java.lang.Object
  extended by com.xj.anylogic.engine.internal.CSVDataProvider
      extended by com.xj.anylogic.engine.analysis.ChartItem
          extended by com.xj.anylogic.engine.analysis.DataItem
All Implemented Interfaces:
java.io.Serializable

public class DataItem
extends ChartItem

A chart item that contains a single scalar value of type double.

Author:
XJ Technologies Company Ltd. www.anylogic.com
See Also:
Serialized Form

Constructor Summary
DataItem()
           
 
Method Summary
 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.
 
Methods inherited from class com.xj.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

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


Copyright © 1991-2008 XJ Technlogies. All Rights Reserved.