JLogView_.datastructs
Class LGColumn

java.lang.Object
  extended by JLogView_.datastructs.LGColumn

public class LGColumn
extends java.lang.Object

LGColumn is a class representing a set of data, a column from a JLogView_ table it has name and data information,


Constructor Summary
LGColumn(java.lang.String n)
          This is the default constructor.
 
Method Summary
 void addDataItem(float d)
          This methods appends one data entry to the existing array of data.
 float[] getData()
          This methods returns the whole set of data from this column
 int getLength()
          This methods returns the number of data entries in this column.
 float getMax()
          This methods returns the largest value among all the data of this column
 float getMin()
          This methods returns the smallest value among all the data of this column
 java.lang.String getName()
          This methods returns the name for this set of data
 void setName(java.lang.String newname)
          This methods sets the name for this set of data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LGColumn

public LGColumn(java.lang.String n)
This is the default constructor.

Parameters:
n - a String representing the name of the column
See Also:
String
Method Detail

getData

public float[] getData()
This methods returns the whole set of data from this column

Returns:
the data as an array of floats

addDataItem

public void addDataItem(float d)
This methods appends one data entry to the existing array of data.

Parameters:
d - a data entry

getLength

public int getLength()
This methods returns the number of data entries in this column.

Returns:
the length of array of data

getName

public java.lang.String getName()
This methods returns the name for this set of data

Returns:
a String representing the name of this column
See Also:
String

setName

public void setName(java.lang.String newname)
This methods sets the name for this set of data

Parameters:
newname - a String representing the name of this column
See Also:
String

getMin

public float getMin()
This methods returns the smallest value among all the data of this column

Returns:
a float, the minimum value of the column

getMax

public float getMax()
This methods returns the largest value among all the data of this column

Returns:
a float, the maximum value of the column