lejos.util
Class LogColumn
java.lang.Object
lejos.util.LogColumn
public class LogColumn
- extends Object
Use to define the header names, datatypes, count, chartable attribute, and range axis ID (for multiple axis charts).
- Author:
- Kirk P. Thompson
- See Also:
Logger.setColumns(lejos.util.LogColumn[])
,
NXTDataLogger
Constructor Summary |
LogColumn(String name)
RangeAxisID defaults to 1,
chartable defaults to true , and datatype defaults to DT_FLOAT . |
LogColumn(String name,
int datatype)
Throws unchecked IllegalArgumentException if bad datatype value. |
LogColumn(String name,
int datatype,
boolean chartable)
Throws unchecked IllegalArgumentException if bad datatype value. |
LogColumn(String name,
int datatype,
int rangeAxisID)
Throws unchecked IllegalArgumentException if bad datatype value or rangeAxisID is not in within 1-4. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
LogColumn
public LogColumn(String name)
RangeAxisID
defaults to 1,
chartable
defaults to true
, and datatype defaults to DT_FLOAT
.
- Parameters:
name
- name the label/name of the column/series.
LogColumn
public LogColumn(String name,
int datatype)
- Throws unchecked IllegalArgumentException if bad datatype value.
RangeAxisID
defaults to 1 and
chartable
defaults to true
.
- Parameters:
name
- The label/name of the column/seriesdatatype
- The datatype of of the column/series- See Also:
DT_BOOLEAN
,
DT_BYTE
,
DT_SHORT
,
DT_INTEGER
,
DT_LONG
,
DT_FLOAT
,
DT_DOUBLE
LogColumn
public LogColumn(String name,
int datatype,
boolean chartable)
- Throws unchecked IllegalArgumentException if bad datatype value.
RangeAxisID
defaults to 1.
- Parameters:
name
- The label/name of the column/seriesdatatype
- The datatype of of the column/serieschartable
- true
to chart the data, false
to only log it.- See Also:
LogColumn(String, int, int)
LogColumn
public LogColumn(String name,
int datatype,
int rangeAxisID)
- Throws unchecked IllegalArgumentException if bad datatype value or
rangeAxisID
is not in within 1-4.
chartable
defaults to true
.
- Parameters:
name
- The label/name of the column/seriesdatatype
- The datatype of of the column/seriesrangeAxisID
- Range axis ID 1-4- See Also:
LogColumn(String, int, boolean)
getSize
public int getSize()
- Returns:
- the datatype size in bytes
getDatatype
public int getDatatype()
- Returns:
- The datatype value set in the constructor
isChartable
public boolean isChartable()
- Returns:
- The chartable flag value set in the constructor
getRangeAxisID
public int getRangeAxisID()
- Returns:
- The range Axis ID value set in the constructor
getName
public String getName()
- Returns:
- The name value set in the constructor