anl.aida.data
Class DataFrameStringAxis

java.lang.Object
  extended by anl.aida.data.AxisRange
      extended by anl.aida.data.DataFrameAxis
          extended by anl.aida.data.DataFrameStringAxis
All Implemented Interfaces:
CoordAxis, StringCoordAxis

public class DataFrameStringAxis
extends DataFrameAxis
implements StringCoordAxis


Field Summary
 
Fields inherited from class anl.aida.data.AxisRange
axis, range
 
Fields inherited from interface anl.aida.data.StringCoordAxis
INDEX_NOT_FOUND
 
Constructor Summary
DataFrameStringAxis(StringCoordAxis axis, int index)
          Creates a DataFrameAxis for the specified axis with origin and extent equal to that of the axis.
DataFrameStringAxis(StringCoordAxis axis, int origin, int extent, int index)
          Creates a DataFrameAxis for the specified axis with the specified origin and extent.
 
Method Summary
 int getIndex(java.lang.String value)
          Gets the index of the specified value.
 java.lang.String getString(int index)
          Gets the String value at the specified index.
 
Methods inherited from class anl.aida.data.DataFrameAxis
createDataFrameAxis, createDataFrameAxis, createDataFrameAxis, getArrayIndex
 
Methods inherited from class anl.aida.data.AxisRange
getAttribute, getAxis, getAxisType, getDescription, getExtent, getName, getOrigin, getRange, getUnits, getValue, getValueAsString, isCompatible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface anl.aida.data.CoordAxis
getAttribute, getAxisType, getDescription, getName, getRange, getUnits, getValue, getValueAsString, isCompatible
 

Constructor Detail

DataFrameStringAxis

public DataFrameStringAxis(StringCoordAxis axis,
                           int index)
Creates a DataFrameAxis for the specified axis with origin and extent equal to that of the axis.

Parameters:
axis - the axis
index - the array index of this axis

DataFrameStringAxis

public DataFrameStringAxis(StringCoordAxis axis,
                           int origin,
                           int extent,
                           int index)
Creates a DataFrameAxis for the specified axis with the specified origin and extent.

Parameters:
origin - the origin of the range
extent - the extent of the range
axis - the axis
index - the array index of this axis
Method Detail

getIndex

public int getIndex(java.lang.String value)
Description copied from interface: StringCoordAxis
Gets the index of the specified value.

Specified by:
getIndex in interface StringCoordAxis
Parameters:
value - the value whose index we want
Returns:
the index of the specified value or INDEX_NOT_FOUND if the value is not found

getString

public java.lang.String getString(int index)
Description copied from interface: StringCoordAxis
Gets the String value at the specified index.

Specified by:
getString in interface StringCoordAxis
Parameters:
index - the index of the String value
Returns:
the String value at the specified index.