public abstract class AbstractDataSet extends java.lang.Object implements DataSet
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractDataSet.ViewDataSet
A DataSet implementation that share properties, yUnits and
yUnits with the instance of AbstractDataSet it is associated with.
|
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
Modifier | Constructor and Description |
---|---|
protected |
AbstractDataSet(double[] xTags,
Units xUnits,
Units yUnits,
java.util.Map properties)
Creates a new instance of AbstractDataSet
The properties map must only have keys of type String.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlanarView, getPlaneIds
protected AbstractDataSet(double[] xTags, Units xUnits, Units yUnits, java.util.Map properties) throws java.lang.IllegalArgumentException
xTags
- values of the x tags for this data set in xUnitsxUnits
- the units of the x tags for this data setyUnits
- the units of the y tags/values for this data setproperties
- map of property names and valuesjava.lang.IllegalArgumentException
- if properties has one or more keys
that is not a Stringpublic java.lang.Object getProperty(java.lang.String name)
name
representsgetProperty
in interface DataSet
name
- String name of the property requestedname
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
.getXTagDatum
in interface DataSet
i
- the index of the requested x tagDatum
.public double getXTagDouble(int i, Units units)
DataSet
double
in the given units. XTags must be
monotonically increasing with i.getXTagDouble
in interface DataSet
i
- the index of the requested x tagunits
- the units of the returned valuedouble
.public int getXTagInt(int i, Units units)
DataSet
int
in the given units. XTags must be
monotonically increasing with i.getXTagInt
in interface DataSet
i
- the index of the requested x tagunits
- the units of the returned value.int
.public Units getXUnits()