public final class DefaultVectorDataSet extends AbstractVectorDataSet implements DataSet, VectorDataSet
AbstractDataSet.ViewDataSet
PROPERTY_CACHE_TAG, PROPERTY_FORMATTER, PROPERTY_OPERATION, PROPERTY_PLANE_PEAKS, PROPERTY_PLANE_WEIGHTS, PROPERTY_RENDERER, PROPERTY_SIZE_BYTES, PROPERTY_SOURCE, PROPERTY_SUMMARY, PROPERTY_TITLE, PROPERTY_X_CACHE_RES, PROPERTY_X_CACHE_RNG, PROPERTY_X_FORMAT, PROPERTY_X_LABEL, PROPERTY_X_MONOTONIC, PROPERTY_X_RANGE, PROPERTY_X_SUMMARY, PROPERTY_X_TAG_WIDTH, PROPERTY_X_VALID_MAX, PROPERTY_X_VALID_MIN, PROPERTY_Y_CACHE_RES, PROPERTY_Y_CACHE_RNG, PROPERTY_Y_FILL, PROPERTY_Y_FORMAT, PROPERTY_Y_LABEL, PROPERTY_Y_MONOTONIC, PROPERTY_Y_RANGE, PROPERTY_Y_SCALETYPE, PROPERTY_Y_SUMMARY, PROPERTY_Y_TAG_WIDTH, PROPERTY_Y_VALID_MAX, PROPERTY_Y_VALID_MIN, PROPERTY_Z_FILL, PROPERTY_Z_FORMAT, PROPERTY_Z_LABEL, PROPERTY_Z_RANGE, PROPERTY_Z_SCALETYPE, PROPERTY_Z_SUMMARY, PROPERTY_Z_VALID_MAX, PROPERTY_Z_VALID_MIN
Constructor and Description |
---|
DefaultVectorDataSet(double[] xTags,
Units xUnits,
double[] yValues,
Units yUnits,
java.util.Map properties)
Creates a new instance of DefaultVectorDataSet
|
DefaultVectorDataSet(double[] xTags,
Units xUnits,
double[] yValues,
Units yUnits,
java.util.Map yValuesMap,
java.util.Map yUnitsMap,
java.util.Map properties)
Creates a new instance of DefaultVectorDataSet
The keys for the properties, yValuesMap, and unitsMap parameter must
consist solely of String values.
|
Modifier and Type | Method and Description |
---|---|
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 auxiliary planes (e.g.
|
toString
getProperties, getProperty, getXLength, getXTagDatum, getXTagDouble, getXTagInt, getXUnits, getYUnits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProperties, getProperty, getXLength, getXTagDatum, getXTagDouble, getXTagInt, getXUnits, getYUnits
public DefaultVectorDataSet(double[] xTags, Units xUnits, double[] yValues, Units yUnits, java.util.Map properties)
xTags
- array of double x tag valuesxUnits
- units for the x tagsyValues
- array of double y valuesyUnits
- untis for the y valuesproperties
- map of String property names to their valuespublic DefaultVectorDataSet(double[] xTags, Units xUnits, double[] yValues, Units yUnits, java.util.Map yValuesMap, java.util.Map yUnitsMap, java.util.Map properties)
xTags
- array of double x tag valuesxUnits
- units for the x tagsyValues
- array of double y valuesyUnits
- untis for the y valuesyValuesMap
- map of String plane IDs to their y valuesproperties
- map of String property names to their valuespublic Datum getDatum(int i)
Datum
.getDatum
in interface VectorDataSet
i
- index of the x tag for the requested value.Datum
public double getDouble(int i, Units units)
double
with the given units.getDouble
in interface VectorDataSet
i
- index of the x tag for the requested value.units
- the units the returned value should be coverted to.double
.public int getInt(int i, Units units)
int
with the given units.getInt
in interface VectorDataSet
i
- index of the x tag for the requested value.units
- the units the returned value should be coverted to.int
.public DataSet getPlanarView(java.lang.String planeID)
DataSet
with the specified view as the primary
view.getPlanarView
in interface DataSet
planeID
- the String
id of the requested plane.DataSet
public java.lang.String[] getPlaneIds()
DataSet
getPlaneIds
in interface DataSet