public class LabelledMarkerDataSet extends AbstractDataSet<LabelledMarkerDataSet> implements DataSet2D
DefaultDataSet to easier handle labelled markers.| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<DoublePoint> |
data |
protected ArrayList<String> |
dataLabels |
protected ArrayList<String> |
dataStyles |
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
LabelledMarkerDataSet(String name) |
| Modifier and Type | Method and Description |
|---|---|
LabelledMarkerDataSet |
add(LabelledMarker marker) |
LabelledMarkerDataSet |
clearData() |
double |
get(int dimIndex,
int index)
Gets the x value of the data point with the index i
|
List<DoublePoint> |
getData() |
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.
|
List<String> |
getDataLabels() |
List<String> |
getDataStyles() |
String |
getStyle(int index)
A string representation of the CSS style associated with this specific
DataSet data point. |
LabelledMarkerDataSet |
remove(int fromIndex,
int toIndex)
remove sub-range of data (marker) points
|
LabelledMarkerDataSet |
set(int index,
LabelledMarker marker)
replaces existing data marker with new marker value
|
LabelledMarkerDataSet |
set(LabelledMarker[] markers)
replaces existing with new marker values
|
LabelledMarkerDataSet |
set(List<LabelledMarker> markers)
replaces existing with new marker values
|
addDataLabel, addDataStyle, autoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, fireInvalidated, getAxisDescriptions, 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, waitgetDimension, getValue, getValue, getX, getXIndex, getXValues, getY, getYIndex, getYValuesgetAxisDescription, getAxisDescriptions, getIndex, getName, getStyle, getValues, lock, recomputeLimits, setStyleaddListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListenerprotected ArrayList<DoublePoint> data
public LabelledMarkerDataSet(String name)
name - data set namepublic LabelledMarkerDataSet add(LabelledMarker marker)
marker - new markerpublic LabelledMarkerDataSet clearData()
public double get(int dimIndex,
int index)
DataSetpublic List<DoublePoint> getData()
public int getDataCount()
DataSetgetDataCount in interface DataSetpublic int getDataCount(int dimIndex)
DataSetgetDataCount in interface DataSetdimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')public String getDataLabel(int index)
getDataLabel in interface DataSetgetDataLabel in class AbstractDataSet<LabelledMarkerDataSet>index - of the data labelnull if no label has been specifiedpublic String getStyle(int index)
DataSet data point. @see
#getStyle()getStyle in interface DataSetgetStyle in class AbstractDataSet<LabelledMarkerDataSet>index - the index of the specific data pointpublic LabelledMarkerDataSet remove(int fromIndex, int toIndex)
fromIndex - start indextoIndex - stop indexpublic LabelledMarkerDataSet set(int index, LabelledMarker marker)
index - index of existing pointmarker - new marker valuepublic LabelledMarkerDataSet set(LabelledMarker[] markers)
markers - new marker valuespublic LabelledMarkerDataSet set(List<LabelledMarker> markers)
markers - new marker valuesCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.