lejos.pc.charting
Class DataItem

java.lang.Object
  extended by lejos.pc.charting.DataItem

public class DataItem
extends java.lang.Object

Each logged data item is represented by a DataItem instance which provide the value as a wrapper and it's datatype.

See Also:
DataLogger, DataLogger.LoggerListener#logLineAvailable

Field Summary
 int datatype
          The datatype.
static int DT_BOOLEAN
           
static int DT_BYTE
           
static int DT_DOUBLE
           
static int DT_FLOAT
           
static int DT_INTEGER
           
static int DT_LONG
           
static int DT_SHORT
           
static int DT_STRING
           
 java.lang.Object value
          The Number wrapper object of the datatype.
 
Constructor Summary
DataItem()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DT_BOOLEAN

public static final int DT_BOOLEAN
See Also:
Constant Field Values

DT_BYTE

public static final int DT_BYTE
See Also:
Constant Field Values

DT_SHORT

public static final int DT_SHORT
See Also:
Constant Field Values

DT_INTEGER

public static final int DT_INTEGER
See Also:
Constant Field Values

DT_LONG

public static final int DT_LONG
See Also:
Constant Field Values

DT_FLOAT

public static final int DT_FLOAT
See Also:
Constant Field Values

DT_DOUBLE

public static final int DT_DOUBLE
See Also:
Constant Field Values

DT_STRING

public static final int DT_STRING
See Also:
Constant Field Values

value

public java.lang.Object value
The Number wrapper object of the datatype. Use datatype to determine correct cast type.


datatype

public int datatype
The datatype.

See Also:
DT_BOOLEAN, DT_BYTE, DT_SHORT, DT_INTEGER, DT_LONG, DT_FLOAT, DT_DOUBLE, DT_STRING
Constructor Detail

DataItem

public DataItem()