public interface DataSet extends EventSource
| Modifier and Type | Method and Description |
|---|---|
int |
getDataCount()
Get the number of data points in the data set
|
int |
getDataCount(double xmin,
double xmax)
Gets the number of data points in the range xmin to xmax.
|
String |
getDataLabel(int index)
Returns label of a data point specified by the index.
|
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 |
getUndefValue()
Returns the value for undefined data points.
|
default double |
getValue(double x)
Gets the interpolated y value of the data point for given x coordinate
|
double |
getX(int i)
Gets the x value of the data point with the index i
|
int |
getXIndex(double x)
Gets the index of the data point closest to the given x coordinate.
|
double |
getXMax()
Gets the maximum x value of the data set.
|
double |
getXMin()
Gets the minimum x value of the data set.
|
default double[] |
getXValues() |
double |
getY(int i)
Gets the y value of the data point with the index i
|
int |
getYIndex(double y)
Gets the first index of the data point closest to the given y coordinate.
|
double |
getYMax()
Gets the maximum y value of the data set.
|
double |
getYMin()
Gets the minimum y value of the data set.
|
default double[] |
getYValues() |
boolean |
isAutoNotification()
Checks it automatic notification is enabled.
|
DataSet |
lock()
Locks access to the data set.
|
DataSet |
setAutoNotifaction(boolean flag)
Set the automatic notification of invalidation listeners.
|
DataSet |
setStyle(String style)
A string representation of the CSS style associated with this specific
DataSet. |
DataSet |
unlock()
Unlock the data set.
|
addListener, invokeListener, invokeListener, removeListener, updateEventListenerString getName()
DataSet lock()
DataSet unlock()
DataSet setAutoNotifaction(boolean flag)
flag - true for automatic notificationboolean isAutoNotification()
int getDataCount()
int getDataCount(double xmin,
double xmax)
xmin - the lower end of the rangexmax - the upper end of the rangedouble getX(int i)
i - the index of the data pointdouble getY(int i)
i - the index of the data pointdefault double[] getXValues()
default double[] getYValues()
default double getValue(double x)
x - the new x coordinateDouble getUndefValue()
int getXIndex(double x)
x - the x position of the data pointint getYIndex(double y)
y - the y position of the data pointdouble getXMin()
double getXMax()
double getYMin()
double getYMax()
String getDataLabel(int index)
index - the data indexnull
if none label has been specified for this data point.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 index of the specific data pointDataSet 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 © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.