public interface DataSet extends EventSource, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
DIM_X |
static int |
DIM_Y |
static int |
DIM_Z |
| Modifier and Type | Method and Description |
|---|---|
double |
get(int dimIndex,
int index)
Gets the x value of the data point with the index i
|
default AxisDescription |
getAxisDescription(int dim)
Return the axis description of the i-th axis.
|
List<AxisDescription> |
getAxisDescriptions() |
default int |
getDataCount()
Get the number of data points in the data set.
|
int |
getDataCount(int dimIndex)
Get the number of data points in the data set for a specific dimension.
|
String |
getDataLabel(int index)
Returns label of a data point specified by the index.
|
int |
getDimension() |
int |
getIndex(int dimIndex,
double value)
Gets the index of the data point closest to the given 'value' coordinate.
|
String |
getName()
Gets the name of the data set.
|
String |
getStyle()
A string representation of the CSS style associated with this specific
DataSet. |
String |
getStyle(int index)
A string representation of the CSS style associated with this specific
DataSet data point. |
double |
getValue(int dimIndex,
double x)
Gets the interpolated y value of the data point for given x coordinate
|
default double[] |
getValues(int dimIndex) |
<D extends DataSet> |
lock() |
DataSet |
recomputeLimits(int dimension) |
DataSet |
setStyle(String style)
A string representation of the CSS style associated with this specific
DataSet. |
addListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListenerstatic final int DIM_X
static final int DIM_Y
static final int DIM_Z
double get(int dimIndex,
int index)
dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')index - data point indexdefault AxisDescription getAxisDescription(int dim)
dim - 0: X-Axis, 1: Y-Axis, ...List<AxisDescription> getAxisDescriptions()
default int getDataCount()
int getDataCount(int dimIndex)
dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')String getDataLabel(int index)
index - the data indexnull if none label has been specified for
this data point.int getDimension()
int getIndex(int dimIndex,
double value)
dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')value - the data point coordinate to search forString getName()
String getStyle()
DataSet. This is analogous to the
"style" attribute of an HTML element. Note that, like the HTML style attribute, this variable contains style
properties and values and not the selector portion of a style rule.String getStyle(int index)
DataSet data point. @see
#getStyle()index - the specific data point indexdouble getValue(int dimIndex,
double x)
dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')x - the new x coordinatedefault double[] getValues(int dimIndex)
dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')<D extends DataSet> DataSetLock<D> lock()
D - generics (fluent design)DataSetLockDataSet recomputeLimits(int dimension)
DataSet setStyle(String style)
DataSet. This is analogous to the
"style" attribute of an HTML element. Note that, like the HTML style attribute, this variable contains style
properties and values and not the selector portion of a style rule.style - the new user-specific styleCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.