public class LabelledMarkerDataSet extends AbstractDataSet<LabelledMarkerDataSet> implements DataSet
DefaultDataSet to easier handle labelled
markers.| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<DoublePoint> |
data |
protected ArrayList<String> |
dataLabels |
protected ArrayList<String> |
dataStyles |
editConstraints, errorList, infoList, lock, metaInfoMap, name, updateListeners, warningList, xRange, yRangeTAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
LabelledMarkerDataSet(String name) |
| Modifier and Type | Method and Description |
|---|---|
LabelledMarkerDataSet |
add(LabelledMarker marker) |
LabelledMarkerDataSet |
clearData() |
protected LabelledMarkerDataSet |
computeLimits()
Computes limits (ranges) of this DataSet.
|
List<DoublePoint> |
getData() |
int |
getDataCount()
Get the number of data points in the data set
|
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. |
double |
getX(int index)
Gets the x value of the data point with the index i
|
double |
getY(int index)
Gets the y value of the data point with the index i
|
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, binarySearchX, binarySearchY, clearMetaInfo, fireInvalidated, getDataCount, getDataLabelMap, getDataStyleMap, getEditConstraints, getErrorList, getInfoList, getMetaInfo, getName, getThis, getUndefValue, getWarningList, getXIndex, getXMax, getXMin, getXRange, getYIndex, getYMax, getYMin, getYRange, isAutoNotification, lock, minNeigbourSearchX, removeDataLabel, removeStyle, setAutoNotifaction, setEditConstraints, setName, toString, unlock, updateEventListenergetStyle, setStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataCount, getName, getStyle, getUndefValue, getValue, getXIndex, getXMax, getXMin, getXValues, getYIndex, getYMax, getYMin, getYValues, isAutoNotification, lock, setAutoNotifaction, setStyle, unlockaddListener, invokeListener, invokeListener, removeListener, updateEventListenerprotected ArrayList<DoublePoint> data
public LabelledMarkerDataSet(String name)
name - data set namepublic List<DoublePoint> getData()
public int getDataCount()
DataSetgetDataCount in interface DataSetpublic LabelledMarkerDataSet clearData()
public double getX(int index)
DataSetpublic double getY(int index)
DataSetpublic LabelledMarkerDataSet add(LabelledMarker marker)
marker - new markerpublic LabelledMarkerDataSet set(List<LabelledMarker> markers)
markers - new marker valuespublic LabelledMarkerDataSet set(LabelledMarker[] markers)
markers - new marker valuespublic LabelledMarkerDataSet set(int index, LabelledMarker marker)
index - index of existing pointmarker - new marker valuepublic LabelledMarkerDataSet remove(int fromIndex, int toIndex)
fromIndex - start indextoIndex - stop indexpublic 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 pointprotected LabelledMarkerDataSet computeLimits()
computeLimits in class AbstractDataSet<LabelledMarkerDataSet>Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.