org.das2.dataset
Class XSliceDataSet

java.lang.Object
  extended by org.das2.dataset.ViewDataSet
      extended by org.das2.dataset.XSliceDataSet
All Implemented Interfaces:
DataSet, VectorDataSet

public class XSliceDataSet
extends ViewDataSet
implements VectorDataSet


Field Summary
 
Fields inherited from interface org.das2.dataset.DataSet
PROPERTY_CACHE_TAG, PROPERTY_FORMATTER, PROPERTY_PLANE_PEAKS, PROPERTY_PLANE_WEIGHTS, PROPERTY_RENDERER, PROPERTY_SIZE_BYTES, PROPERTY_X_LABEL, PROPERTY_X_MONOTONIC, PROPERTY_X_RANGE, PROPERTY_X_TAG_WIDTH, PROPERTY_Y_LABEL, PROPERTY_Y_RANGE, PROPERTY_Y_SCALETYPE, PROPERTY_Y_TAG_WIDTH, PROPERTY_Z_LABEL, PROPERTY_Z_RANGE, PROPERTY_Z_SCALETYPE
 
Constructor Summary
XSliceDataSet(TableDataSet tdsSource, int i)
           
 
Method Summary
 Datum getDatum(int i)
          Returns the Y value for the given index into the x tags as a Datum.
 double getDouble(int i, Units units)
          Returns the Y value for the given index into the x tags as a double with the given units.
 int getInt(int i, Units units)
          Returns the Y value for the given index into the x tags as a int with the given units.
 DataSet getPlanarView(java.lang.String planeID)
          Returns a DataSet with the specified view as the primary view.
 java.lang.String[] getPlaneIds()
          Returns a list of auxillary planes (e.g.
 java.lang.Object getProperty(java.lang.String name)
          Returns the value of the property that name represents
 int getXLength()
          Returns the number of x tags in this data set.
 Datum getXTagDatum(int i)
          Returns the value of the x tag at the given index i as a Datum.
 double getXTagDouble(int i, Units units)
          Returns the value of the x tag at the given index i as a double in the given units.
 int getXTagInt(int i, Units units)
          Returns the value of the x tag at the given index i as an int in the given units.
 Units getXUnits()
          Returns the Units object representing the unit type of the x tags for this data set.
 Units getYUnits()
          Returns the Units object representing the unit type of the y tags or y values for this data set.
 
Methods inherited from class org.das2.dataset.ViewDataSet
getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.das2.dataset.DataSet
getProperties
 

Constructor Detail

XSliceDataSet

public XSliceDataSet(TableDataSet tdsSource,
                     int i)
Method Detail

getPlanarView

public DataSet getPlanarView(java.lang.String planeID)
Description copied from interface: DataSet
Returns a DataSet with the specified view as the primary view.

Specified by:
getPlanarView in interface DataSet
Parameters:
planeID - the String id of the requested plane.
Returns:
the specified view, as a DataSet

getPlaneIds

public java.lang.String[] getPlaneIds()
Description copied from interface: DataSet
Returns a list of auxillary planes (e.g. weights, peaks) for the dataset. Note that the default plane, "" may or may not be returned, based on implementations.

Specified by:
getPlaneIds in interface DataSet

getDatum

public Datum getDatum(int i)
Description copied from interface: VectorDataSet
Returns the Y value for the given index into the x tags as a Datum.

Specified by:
getDatum in interface VectorDataSet
Parameters:
i - index of the x tag for the requested value.
Returns:
the value at index location i as a Datum

getDouble

public double getDouble(int i,
                        Units units)
Description copied from interface: VectorDataSet
Returns the Y value for the given index into the x tags as a double with the given units.

Specified by:
getDouble in interface VectorDataSet
Parameters:
i - index of the x tag for the requested value.
units - the units the returned value should be coverted to.
Returns:
the value at index location i as a double.

getInt

public int getInt(int i,
                  Units units)
Description copied from interface: VectorDataSet
Returns the Y value for the given index into the x tags as a int with the given units.

Specified by:
getInt in interface VectorDataSet
Parameters:
i - index of the x tag for the requested value.
units - the units the returned value should be coverted to.
Returns:
the value at index location i as a int.

getXTagDatum

public Datum getXTagDatum(int i)
Description copied from interface: DataSet
Returns the value of the x tag at the given index i as a Datum.

Specified by:
getXTagDatum in interface DataSet
Overrides:
getXTagDatum in class ViewDataSet
Parameters:
i - the index of the requested x tag
Returns:
the value of the x tag at the given index i as a Datum.

getXLength

public int getXLength()
Description copied from interface: DataSet
Returns the number of x tags in this data set. XTags must be monotonically increasing with i.

Specified by:
getXLength in interface DataSet
Overrides:
getXLength in class ViewDataSet
Returns:
the number of x tags in this data set.

getXUnits

public Units getXUnits()
Description copied from class: ViewDataSet
Returns the Units object representing the unit type of the x tags for this data set.

Specified by:
getXUnits in interface DataSet
Overrides:
getXUnits in class ViewDataSet
Returns:
the x units

getXTagDouble

public double getXTagDouble(int i,
                            Units units)
Description copied from interface: DataSet
Returns the value of the x tag at the given index i as a double in the given units. XTags must be monotonically increasing with i.

Specified by:
getXTagDouble in interface DataSet
Overrides:
getXTagDouble in class ViewDataSet
Parameters:
i - the index of the requested x tag
units - the units of the returned value
Returns:
the value of the x tag at the given index i as a double.

getYUnits

public Units getYUnits()
Description copied from class: ViewDataSet
Returns the Units object representing the unit type of the y tags or y values for this data set.

Specified by:
getYUnits in interface DataSet
Overrides:
getYUnits in class ViewDataSet
Returns:
the y units

getXTagInt

public int getXTagInt(int i,
                      Units units)
Description copied from interface: DataSet
Returns the value of the x tag at the given index i as an int in the given units. XTags must be monotonically increasing with i.

Specified by:
getXTagInt in interface DataSet
Overrides:
getXTagInt in class ViewDataSet
Parameters:
i - the index of the requested x tag
units - the units of the returned value.
Returns:
the value of the x tag at the given index i as an int.

getProperty

public java.lang.Object getProperty(java.lang.String name)
Description copied from class: ViewDataSet
Returns the value of the property that name represents

Specified by:
getProperty in interface DataSet
Overrides:
getProperty in class ViewDataSet
Parameters:
name - String name of the property requested
Returns:
the value of the property that name represents