heasarc.w3browse.plot
Class Column

java.lang.Object
  |
  +--heasarc.w3browse.plot.Column

public class Column
extends java.lang.Object

This class stores W3Browse data by column.


Field Summary
 java.lang.Object data
          The column data.
protected  java.lang.String fieldname
          String containing name of field
 boolean isNumeric
          Indicates if column is numeric
protected  double max
          Maximum data[] element
protected  double min
          Minimum data[] element
protected  int nrows
          Number of rows of data
protected  java.lang.String type
          The data type of the column
 
Constructor Summary
Column(double[] indata, Column col)
          Constructor which creates a Column with new data array The rest of the data comes from the passed in Column This constructor is used by the Aitoff class
Column(java.lang.String name, java.lang.String type, java.lang.Object data, boolean isNumeric)
          Constructor for Column
 
Method Summary
 double[] getData()
          Returns data array for Column object
 java.lang.String getField()
          Returns field name for Column
 double getMax()
          Returns max value for column data
 double getMin()
          Returns min value for column data
 int getNrows()
           
static Column logColumn(Column col)
          Create a new column which is the logarithm of the input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldname

protected java.lang.String fieldname
String containing name of field

type

protected java.lang.String type
The data type of the column

nrows

protected int nrows
Number of rows of data

isNumeric

public boolean isNumeric
Indicates if column is numeric

data

public java.lang.Object data
The column data. If the column is numeric, data is a double[] else column is String[]

min

protected double min
Minimum data[] element

max

protected double max
Maximum data[] element
Constructor Detail

Column

public Column(java.lang.String name,
              java.lang.String type,
              java.lang.Object data,
              boolean isNumeric)
Constructor for Column
Parameters:
name - name of field
type - of data in column
data - object array containing field data
isNumeric - indicates if column contains numeric data
nrows - number of data rows for a field

Column

public Column(double[] indata,
              Column col)
Constructor which creates a Column with new data array The rest of the data comes from the passed in Column This constructor is used by the Aitoff class
Method Detail

getNrows

public int getNrows()

logColumn

public static Column logColumn(Column col)
Create a new column which is the logarithm of the input.
Parameters:
col - from which the log column is constructed

getMin

public double getMin()
Returns min value for column data
Returns:
minimum value in data[] array

getMax

public double getMax()
Returns max value for column data
Returns:
maximum value in data[] array

getField

public java.lang.String getField()
Returns field name for Column
Returns:
field name for Column

getData

public double[] getData()
                 throws java.lang.ClassCastException
Returns data array for Column object
Returns:
data[] array in Column