public class FragmentedDataSet extends AbstractDataSet<FragmentedDataSet>
| Modifier and Type | Field and Description |
|---|---|
protected int |
dataCount |
protected ArrayList<DataSet> |
list |
lock, name, updateListeners, xRange, yRangeTAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
FragmentedDataSet(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(DataSet set) |
void |
add(double[] xValues,
double[] yValues)
adds new custom x and y array values (internally generates a new DataSet)
|
void |
clear()
clears all sub-dataset references
|
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.
|
int |
getDatasetCount() |
String |
getStyle(int i)
A string representation of the CSS style associated with this specific
DataSet data point. |
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[] |
getXValues() |
double |
getY(int i)
Gets the y value of the data point with the index i
|
double[] |
getYValues() |
AbstractDataSet<?> |
shallowCopy()
Deprecated.
|
String |
toString() |
binarySearchX, binarySearchY, computeLimits, fireInvalidated, getDataLabel, getErrorList, getInfoList, getMetaInfo, getName, getThis, getUndefValue, getWarningList, getXMax, getXMin, getXRange, getYIndex, getYMax, getYMin, getYRange, isAutoNotification, lock, minNeigbourSearchX, setAutoNotifaction, setName, unlock, updateEventListenergetStyle, setStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, invokeListener, invokeListener, removeListenerpublic FragmentedDataSet(String name)
name - data set name@Deprecated public AbstractDataSet<?> shallowCopy()
public String toString()
toString in class AbstractDataSet<FragmentedDataSet>public void clear()
public void add(double[] xValues,
double[] yValues)
xValues - new X coordinatesyValues - new Y coordinatespublic void add(DataSet set)
set - new data set to be added to listpublic int getDatasetCount()
public double[] getYValues()
public double[] getXValues()
public int getDataCount()
DataSetpublic int getDataCount(double xmin,
double xmax)
AbstractDataSetgetDataCount in interface DataSetgetDataCount in class AbstractDataSet<FragmentedDataSet>xmin - the lower end of the rangexmax - the upper end of the rangepublic double getX(int i)
DataSeti - the index of the data pointpublic double getY(int i)
DataSeti - the index of the data pointpublic String getStyle(int i)
DataSetDataSet data point. @see #getStyle()i - the index of the specific data pointpublic int getXIndex(double x)
AbstractDataSetgetXIndex in interface DataSetgetXIndex in class AbstractDataSet<FragmentedDataSet>x - the x position of the data pointCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.