|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.das2.dataset.ViewDataSet
public abstract class ViewDataSet
A DataSet implementation that share properties, yUnits and yUnits with the instance of AbstractDataSet it is associated with. This class is provided so that sub-classes of AbstractDataSet can extend this class when creating views of their data without having to copy the immutable data AbstractDataSet contains.
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 | |
---|---|
protected |
ViewDataSet(DataSet source)
|
Method Summary | |
---|---|
java.util.Map |
getProperties()
Returns all dataset properties in a Map. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.das2.dataset.DataSet |
---|
getPlanarView, getPlaneIds |
Constructor Detail |
---|
protected ViewDataSet(DataSet source)
Method Detail |
---|
public java.lang.Object getProperty(java.lang.String name)
name
represents
getProperty
in interface DataSet
name
- String name of the property requested
name
representspublic java.util.Map getProperties()
DataSet
getProperties
in interface DataSet
public int getXLength()
DataSet
getXLength
in interface DataSet
public Datum getXTagDatum(int i)
DataSet
Datum.
- Specified by:
getXTagDatum
in interface DataSet
- Parameters:
i
- the index of the requested x tag
- Returns:
- the value of the x tag at the given index i as a
Datum
.
public double getXTagDouble(int i, Units units)
DataSet
double in the given units. XTags must be
monotonically increasing with i.
- Specified by:
getXTagDouble
in interface DataSet
- Parameters:
i
- the index of the requested x tagunits
- the units of the returned value
- Returns:
- the value of the x tag at the given index i as a
double
.
public int getXTagInt(int i, Units units)
DataSet
int in the given units. XTags must be
monotonically increasing with i.
- Specified by:
getXTagInt
in interface DataSet
- Parameters:
i
- the index of the requested x tagunits
- the units of the returned value.
- Returns:
- the value of the x tag at the given index i as an
int
.
public Units getXUnits()
getXUnits
in interface DataSet
public Units getYUnits()
getYUnits
in interface DataSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |