public class CircularDoubleErrorDataSet extends AbstractErrorDataSet<CircularDoubleErrorDataSet> implements DataSet2D, DataSetError
DataSetError.ErrorType| Modifier and Type | Field and Description |
|---|---|
protected CircularBuffer<String> |
dataLabels |
protected CircularBuffer<String> |
dataStyles |
protected DoubleCircularBuffer |
xValues |
protected DoubleCircularBuffer |
yErrorsNeg |
protected DoubleCircularBuffer |
yErrorsPos |
protected DoubleCircularBuffer |
yValues |
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
CircularDoubleErrorDataSet(String name,
int initalSize)
Creates a new instance of
CircularDoubleErrorDataSet. |
| Modifier and Type | Method and Description |
|---|---|
CircularDoubleErrorDataSet |
add(double[] xVals,
double[] yVals,
double[] yErrNeg,
double[] yErrPos)
Initialises the data set with specified data.
|
CircularDoubleErrorDataSet |
add(double x,
double y,
double yErrorNeg,
double yErrorPos)
Add point to the DoublePoints object
|
CircularDoubleErrorDataSet |
add(double x,
double y,
double yErrorNeg,
double yErrorPos,
String label)
Add point to the DoublePoints object
|
CircularDoubleErrorDataSet |
add(double x,
double y,
double yErrorNeg,
double yErrorPos,
String label,
String style)
Add point to the DoublePoints object
|
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. |
double |
get(int dimIndex,
int index)
Gets the x value of the data point with the index i
|
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.
|
double |
getErrorNegative(int dimIndex,
int index)
Returns the negative error along the 'dimIndex' axis of a point specified by the
index. |
double |
getErrorPositive(int dimIndex,
int index)
Returns the positive error along the 'dimIndex' axis of a point specified by the
index. |
String |
getStyle(int index)
A string representation of the CSS style associated with this specific
DataSet data point. |
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. |
CircularDoubleErrorDataSet |
reset()
resets all data
|
fireInvalidated, getErrorType, getThis, lock, recomputeLimits, setErrorTypeautoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, getAxisDescriptions, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getWarningList, hashCode, minNeigbourSearchX, setEditConstraints, setName, toString, updateEventListenergetStyle, setStyleclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDimension, getValue, getValue, getX, getXIndex, getXValues, getY, getYIndex, getYValuesgetErrorNegative, getErrorPositive, getErrorsNegative, getErrorsPositive, getErrorTypegetAxisDescription, getAxisDescriptions, getDataCount, getIndex, getName, getStyle, getValues, lock, recomputeLimits, setStyleaddListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListenerprotected DoubleCircularBuffer xValues
protected DoubleCircularBuffer yValues
protected DoubleCircularBuffer yErrorsPos
protected DoubleCircularBuffer yErrorsNeg
protected CircularBuffer<String> dataLabels
protected CircularBuffer<String> dataStyles
public CircularDoubleErrorDataSet(String name, int initalSize)
CircularDoubleErrorDataSet.name - name of this DataSet.initalSize - maximum circular buffer capacityIllegalArgumentException - if name is nullpublic CircularDoubleErrorDataSet add(double x, double y, double yErrorNeg, double yErrorPos)
x - the new x coordinatey - the new y coordinateyErrorNeg - the +dy erroryErrorPos - the -dy errorpublic CircularDoubleErrorDataSet add(double x, double y, double yErrorNeg, double yErrorPos, String label)
x - the new x coordinatey - the new y coordinateyErrorNeg - the +dy erroryErrorPos - the -dy errorlabel - the data labelpublic CircularDoubleErrorDataSet add(double x, double y, double yErrorNeg, double yErrorPos, String label, String style)
x - the new x coordinatey - the new y coordinateyErrorNeg - the +dy erroryErrorPos - the -dy errorlabel - the data labelstyle - the data style stringpublic CircularDoubleErrorDataSet add(double[] xVals, double[] yVals, double[] yErrNeg, double[] yErrPos)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xVals - the new x coordinatesyVals - the new y coordinatesyErrNeg - the +dy errorsyErrPos - the -dy errorspublic int getDataCount(int dimIndex)
DataSetgetDataCount in interface DataSetdimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')public String getDataLabel(int index)
AbstractDataSetgetDataLabel in interface DataSetgetDataLabel in class AbstractDataSet<CircularDoubleErrorDataSet>index - of the data labelnull if no label has been specifiedpublic double getErrorNegative(int dimIndex,
int index)
DataSetErrorindex. Please note
that errors are assumed to be always positive!getErrorNegative in interface DataSetErrordimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')index - of negative 'dimIndex' error to be returned.public double getErrorPositive(int dimIndex,
int index)
DataSetErrorindex. Please note
that errors are assumed to be always positive!getErrorPositive in interface DataSetErrordimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')index - of positive 'dimIndex' error to be returned.public String getStyle(int index)
AbstractDataSetDataSet data point. @see
#getStyle()getStyle in interface DataSetgetStyle in class AbstractDataSet<CircularDoubleErrorDataSet>index - the index of the specific data pointpublic final double get(int dimIndex,
int index)
DataSetpublic String addDataLabel(int index, String label)
AbstractDataSetaddDataLabel in class AbstractDataSet<CircularDoubleErrorDataSet>index - of the data pointlabel - for the data point specified by the indexnull if no label has been specifiedpublic String addDataStyle(int index, String style)
AbstractDataSetDataSet data point. @see
#getStyle()addDataStyle in class AbstractDataSet<CircularDoubleErrorDataSet>index - the index of the specific data pointstyle - string for the data point specific CSS-stylingpublic String removeStyle(int index)
AbstractDataSetDataSet data point. @see
#getStyle()removeStyle in class AbstractDataSet<CircularDoubleErrorDataSet>index - the index of the specific data pointpublic String removeDataLabel(int index)
AbstractDataSetremoveDataLabel in class AbstractDataSet<CircularDoubleErrorDataSet>index - of the data pointnull if no label has been specifiedpublic CircularDoubleErrorDataSet reset()
Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.