public class LimitedIndexedTreeDataSet extends AbstractErrorDataSet<LimitedIndexedTreeDataSet>
DataSet,
DataSetError| Modifier and Type | Class and Description |
|---|---|
protected class |
LimitedIndexedTreeDataSet.DataAtom |
DataSetError.ErrorType| Modifier and Type | Field and Description |
|---|---|
protected IndexedNavigableSet<LimitedIndexedTreeDataSet.DataAtom> |
data |
protected double |
maxLength |
protected int |
maxQueueSize |
lock, name, updateListeners, xRange, yRangeTAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
LimitedIndexedTreeDataSet(String name,
int maxQueueSize)
Creates a new instance of
DefaultDataSet. |
LimitedIndexedTreeDataSet(String name,
int maxQueueSize,
double maxLength)
Creates a new instance of
DefaultDataSet. |
| Modifier and Type | Method and Description |
|---|---|
LimitedIndexedTreeDataSet |
add(double[] xValues,
double[] yValues)
Adds data points to this data set.
|
LimitedIndexedTreeDataSet |
add(double[] xValues,
double[] yValues,
double[] xErrors,
double[] yErrors)
Adds data points to this data set.
|
LimitedIndexedTreeDataSet |
add(double x,
double y) |
LimitedIndexedTreeDataSet |
add(double x,
double y,
double ex,
double ey)
add new point
|
String |
addDataLabel(int index,
String label)
adds a custom new data label for a point The label can be used as a
category name if CategoryStepsDefinition is used or for annotations
displayed for data points.
|
String |
addDataStyle(int index,
String style)
A string representation of the CSS style associated with this specific
DataSet data point. |
LimitedIndexedTreeDataSet |
clearData()
remove all data points
|
void |
expire()
checks X data range and removes old data points if they exceed the maximum data range
|
void |
expire(double now)
checks X data range and removes old data points if they exceed the maximum data range
|
IndexedNavigableSet<LimitedIndexedTreeDataSet.DataAtom> |
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.
|
double |
getMaxLength() |
int |
getMaxQueueSize() |
String |
getStyle(int index)
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
|
double |
getXErrorNegative(int index)
Returns the negative error along the X axis of a point specified by the
index. |
double |
getXErrorPositive(int index)
Returns the positive error along the X axis of a point specified by the
index. |
double |
getY(int i)
Gets the y value of the data point with the index i
|
double |
getYErrorNegative(int index)
Returns the negative error along the Y axis of a point specified by the
index. |
double |
getYErrorPositive(int index)
Returns the positive error along the Y axis of a point specified by the
index. |
LimitedIndexedTreeDataSet |
remove(int[] indices)
Removes from this data set points with specified indices.
|
LimitedIndexedTreeDataSet |
remove(int fromIndex,
int toIndex)
remove sub-range of data points
|
String |
removeDataLabel(int index)
remove a custom data label for a point The label can be used as a
category name if CategoryStepsDefinition is used or for annotations
displayed for data points.
|
String |
removeStyle(int index)
A string representation of the CSS style associated with this specific
DataSet data point. |
LimitedIndexedTreeDataSet |
reset()
removes all data points
|
LimitedIndexedTreeDataSet |
set(double[] xValues,
double[] yValues)
Initialises the data set with specified data.
|
LimitedIndexedTreeDataSet |
set(double[] xValues,
double[] yValues,
double[] xErrors,
double[] yErrors,
int count)
Initialises the data set with specified data.
|
LimitedIndexedTreeDataSet |
set(double[] xValues,
double[] yValues,
double[] yErrors,
int count)
Initialises the data set with specified data.
|
LimitedIndexedTreeDataSet |
set(double[] xValues,
double[] yValues,
int count)
Initialises the data set with specified data.
|
LimitedIndexedTreeDataSet |
set(int index,
double x,
double y)
Sets the point with index to the new coordinate
|
LimitedIndexedTreeDataSet |
set(int index,
double x,
double y,
double dx,
double dy)
Sets the point with index to the new coordinate
|
LimitedIndexedTreeDataSet |
setMaxLength(double maxLength) |
LimitedIndexedTreeDataSet |
setMaxQueueSize(int maxQueueSize) |
computeLimits, getErrorType, getThis, setErrorTypebinarySearchX, binarySearchY, fireInvalidated, getDataCount, getErrorList, getInfoList, getMetaInfo, getName, getUndefValue, getWarningList, getXIndex, getXMax, getXMin, getXRange, getYIndex, getYMax, getYMin, getYRange, isAutoNotification, lock, minNeigbourSearchX, setAutoNotifaction, setName, toString, unlock, updateEventListenergetStyle, setStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetXErrorNegative, getXErrorPositive, getXErrorsNegative, getXErrorsPositive, getYErrorNegative, getYErrorPositive, getYErrorsNegative, getYErrorsPositivegetDataCount, getName, getStyle, getUndefValue, getValue, getXIndex, getXMax, getXMin, getXValues, getYIndex, getYMax, getYMin, getYValues, isAutoNotification, lock, setAutoNotifaction, setStyle, unlockaddListener, invokeListener, invokeListener, removeListener, updateEventListenerprotected IndexedNavigableSet<LimitedIndexedTreeDataSet.DataAtom> data
protected int maxQueueSize
protected double maxLength
public LimitedIndexedTreeDataSet(String name, int maxQueueSize)
DefaultDataSet.name - name of this DataSet.maxQueueSize - maximum number of samples that is being storedIllegalArgumentException - if name is nullpublic LimitedIndexedTreeDataSet(String name, int maxQueueSize, double maxLength)
DefaultDataSet.name - name of this DataSet.maxQueueSize - maximum number of samples that is being storedmaxLength - maximum length between first and last sampleIllegalArgumentException - if name is nullpublic int getMaxQueueSize()
public LimitedIndexedTreeDataSet setMaxQueueSize(int maxQueueSize)
maxQueueSize - maximum number of data points before points are getting droppedpublic double getMaxLength()
public LimitedIndexedTreeDataSet setMaxLength(double maxLength)
maxLength - maximum X range before points are getting droppedpublic LimitedIndexedTreeDataSet reset()
public void expire()
setMaxLength(double)public void expire(double now)
now - actual time stamp to be taken as a 't0' referencesetMaxLength(double)public IndexedNavigableSet<LimitedIndexedTreeDataSet.DataAtom> getData()
public int getDataCount()
DataSetpublic double getX(int i)
DataSeti - the index of the data pointpublic double getY(int i)
DataSeti - the index of the data pointpublic double getXErrorNegative(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!index - of negative X error to be returned.DataSetError.getXErrorNegative(int)public double getXErrorPositive(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!index - of positive X error to be returned.DataSetError.getXErrorPositive(int)public double getYErrorNegative(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!index - of negative Y error to be returned.DataSetError.getYErrorNegative(int)public double getYErrorPositive(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!index - of positive Y error to be returned.DataSetError.getYErrorPositive(int)public LimitedIndexedTreeDataSet set(int index, double x, double y)
index - the point index of the data setx - the horizontal coordinate of the data pointy - the vertical coordinate of the data pointpublic LimitedIndexedTreeDataSet clearData()
public LimitedIndexedTreeDataSet set(int index, double x, double y, double dx, double dy)
index - the point index of the data setx - the horizontal coordinate of the data pointy - the vertical coordinate of the data pointdx - the horizontal errordy - the vertical error N.B. assumes symmetric errorspublic LimitedIndexedTreeDataSet set(double[] xValues, double[] yValues, double[] xErrors, double[] yErrors, int count)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - X coordinatesyValues - Y coordinatesxErrors - symmetric X coordinate errorsyErrors - symmetric Y coordinate errorscount - number of points to be taken from specified arrays.public LimitedIndexedTreeDataSet set(double[] xValues, double[] yValues, int count)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - X coordinatesyValues - Y coordinatescount - number of points to be taken from specified arrays.public LimitedIndexedTreeDataSet set(double[] xValues, double[] yValues, double[] yErrors, int count)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - X coordinatesyValues - Y coordinatesyErrors - symmetric Y coordinate errorscount - number of points to be taken from specified arrays.public LimitedIndexedTreeDataSet set(double[] xValues, double[] yValues)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - X coordinatesyValues - Y coordinatespublic LimitedIndexedTreeDataSet add(double x, double y)
x - coordinatey - coordinatepublic LimitedIndexedTreeDataSet add(double x, double y, double ex, double ey)
x - horizontal point coordinatey - vertical point coordinateex - horizontal point errorey - vertical point error Note: point errors are expected to be
positivepublic LimitedIndexedTreeDataSet add(double[] xValues, double[] yValues)
usingXValues flag is set to false - array with X
coordinates is not taken into account (may be null)
otherwise both arrays must be non-null and have the same length.xValues - X coordinatesyValues - Y coordinatespublic LimitedIndexedTreeDataSet add(double[] xValues, double[] yValues, double[] xErrors, double[] yErrors)
usingXValues flag is set to false - array with X
coordinates is not taken into account (may be null)
otherwise both arrays must be non-null and have the same length.xValues - X coordinatesyValues - Y coordinatesxErrors - horizontal errorsyErrors - vertical errorspublic LimitedIndexedTreeDataSet remove(int fromIndex, int toIndex)
fromIndex - starting indextoIndex - stopping indexpublic LimitedIndexedTreeDataSet remove(int[] indices)
indices - array of indicices to be removedpublic String addDataLabel(int index, String label)
index - of the data pointlabel - for the data point specified by the indexnull if no label has
been specifiedpublic String removeDataLabel(int index)
index - of the data pointnull if no label has
been specifiedpublic String getDataLabel(int index)
getDataLabel in interface DataSetgetDataLabel in class AbstractDataSet<LimitedIndexedTreeDataSet>index - of the data labelnull if
no label has been specifiedpublic String addDataStyle(int index, String style)
DataSet data point. @see #getStyle()index - the index of the specific data pointstyle - data point CSS-stylenull if no label has
been specifiedpublic String removeStyle(int index)
DataSet data point. @see #getStyle()index - the index of the specific data pointnull if no label has
been specifiedpublic String getStyle(int index)
DataSet data point. @see #getStyle()index - the index of the specific data pointCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.