D - java generics handling of DataSet for derived classes (needed for fluent design)public abstract class AbstractErrorDataSet<D extends AbstractErrorDataSet<D>> extends AbstractDataSet<D> implements DataSetError
The abstract implementation of DataSet and DataSetError interface that provides implementation of some methods.
DataSetError.ErrorTypeTAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Modifier | Constructor and Description |
|---|---|
protected |
AbstractErrorDataSet(String name,
int dimension,
DataSetError.ErrorType... errorTypes)
Creates a new instance of
AbstractDataSet. |
| Modifier and Type | Method and Description |
|---|---|
D |
fireInvalidated(UpdateEvent event)
Notifies listeners that the data has been invalidated.
|
DataSetError.ErrorType |
getErrorType(int dimIndex)
return the DataSetError.ErrorType of the dataset
|
protected D |
getThis() |
DataSetLock<D> |
lock() |
D |
recomputeLimits(int dimension)
Computes limits (ranges) of this DataSet including data point errors.
|
D |
setErrorType(int dimIndex,
DataSetError.ErrorType errorType)
sets the error type of the data set for the given dimension index
|
addDataLabel, addDataStyle, autoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, getAxisDescriptions, getDataLabel, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getStyle, getWarningList, hashCode, minNeigbourSearchX, removeDataLabel, removeStyle, setEditConstraints, setName, toString, updateEventListenergetStyle, setStyleclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetErrorNegative, getErrorNegative, getErrorPositive, getErrorPositive, getErrorsNegative, getErrorsPositiveget, getAxisDescription, getAxisDescriptions, getDataCount, getDataCount, getDataLabel, getDimension, getIndex, getName, getStyle, getStyle, getValue, getValues, setStyleaddListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListenerprotected AbstractErrorDataSet(String name, int dimension, DataSetError.ErrorType... errorTypes)
AbstractDataSet.name - of the DataSetdimension - dimension of data seterrorTypes - for possible enum options see DataSetError.ErrorTypeIllegalArgumentException - if name is nullpublic D fireInvalidated(UpdateEvent event)
AbstractDataSetfireInvalidated in class AbstractDataSet<D extends AbstractErrorDataSet<D>>event - the change eventpublic DataSetError.ErrorType getErrorType(int dimIndex)
getErrorType in interface DataSetErrordimIndex - the dimension for which to query the ErrorTypefor detailsprotected D getThis()
getThis in class AbstractDataSet<D extends AbstractErrorDataSet<D>>public DataSetLock<D> lock()
lock in interface DataSetlock in class AbstractDataSet<D extends AbstractErrorDataSet<D>>DataSetLockpublic D recomputeLimits(int dimension)
recomputeLimits in interface DataSetrecomputeLimits in class AbstractDataSet<D extends AbstractErrorDataSet<D>>dimension - the chosen dimensionpublic D setErrorType(int dimIndex, DataSetError.ErrorType errorType)
dimIndex - the dimension for which to set the ErrorTypeerrorType - error type to be setfor detailsCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.