public class FragmentedDataSet extends AbstractDataSet<FragmentedDataSet> implements DataSet2D
| Modifier and Type | Field and Description |
|---|---|
protected int |
dataCount |
protected ArrayList<DataSet> |
list |
TAG_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
|
double |
get(int dimIndex,
int index)
Gets the x value of the data point with the index i
|
int |
getDataCount()
Get the number of data points in the data set.
|
int |
getDatasetCount() |
Collection<DataSet> |
getDatasets() |
String |
getStyle(int i)
A string representation of the CSS style associated with this specific
DataSet data point. |
int |
getXIndex(double x)
Gets the index of the data point closest to the given x coordinate.
|
double[] |
getXValues() |
double[] |
getYValues() |
addDataLabel, addDataStyle, autoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, fireInvalidated, getAxisDescriptions, getDataLabel, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getThis, getWarningList, hashCode, lock, minNeigbourSearchX, recomputeLimits, removeDataLabel, removeStyle, setEditConstraints, setName, toString, updateEventListenergetStyle, setStyleclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDataCount, getDimension, getValue, getValue, getX, getY, getYIndexgetAxisDescription, getAxisDescriptions, getDataLabel, getIndex, getName, getStyle, getValues, lock, recomputeLimits, setStyleaddListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListenerpublic FragmentedDataSet(String name)
name - data set namepublic void add(DataSet set)
set - new data set to be added to listpublic void add(double[] xValues,
double[] yValues)
xValues - new X coordinatesyValues - new Y coordinatespublic void clear()
public int getDataCount()
DataSet2DgetDataCount in interface DataSetgetDataCount in interface DataSet2Dpublic int getDatasetCount()
public Collection<DataSet> getDatasets()
public String getStyle(int i)
AbstractDataSetDataSet data point. @see
#getStyle()getStyle in interface DataSetgetStyle in class AbstractDataSet<FragmentedDataSet>i - the index of the specific data pointpublic double get(int dimIndex,
int index)
DataSetpublic int getXIndex(double x)
DataSet2Dpublic double[] getXValues()
getXValues in interface DataSet2Dpublic double[] getYValues()
getYValues in interface DataSet2DCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.