Package de.gsi.dataset.spi
Class AbstractErrorDataSet<D extends AbstractErrorDataSet<D>>
- java.lang.Object
-
- de.gsi.dataset.spi.AbstractStylable<D>
-
- de.gsi.dataset.spi.AbstractDataSet<D>
-
- de.gsi.dataset.spi.AbstractErrorDataSet<D>
-
- Type Parameters:
D- java generics handling of DataSet for derived classes (needed for fluent design)
- All Implemented Interfaces:
DataSet,DataSetError,DataSetMetaData,EventSource
- Direct Known Subclasses:
AbstractTestFunction,CircularDoubleErrorDataSet,DoubleErrorDataSet,FifoDoubleErrorDataSet,LimitedIndexedTreeDataSet,ListErrorDataSet
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.
- It maintains the name of the DataSet
- It maintains a list of DataSetListener objects and provides methods that can be used to dispatch DataSetEvent events.
- It maintains ranges of X and Y values including error bars
- It gives a possibility to specify an undefined value.
- Author:
- rstein
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.gsi.dataset.DataSetError
DataSetError.ErrorType
-
-
Field Summary
-
Fields inherited from class de.gsi.dataset.spi.AbstractDataSet
dataLabels, dataStyles, editConstraints, lock, metaInfoMap, name, updateListeners, xRange, yRange
-
Fields inherited from interface de.gsi.dataset.DataSetMetaData
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractErrorDataSet(java.lang.String name)Creates a new instance ofAbstractDataSet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DcomputeLimits()Computes limits (ranges) of this DataSet including data point errors.DfireInvalidated(UpdateEvent event)Notifies listeners that the data has been invalidated.DataSetError.ErrorTypegetErrorType()return the DataSetError.ErrorType of the datasetprotected DgetThis()Dlock()Locks access to the data set.DsetErrorType(DataSetError.ErrorType errorType)sets the error type of the data setDunlock()Unlock the data set.-
Methods inherited from class de.gsi.dataset.spi.AbstractDataSet
addDataLabel, addDataStyle, binarySearchX, binarySearchY, getDataCount, getDataLabel, getDefaultDataLabel, getEditConstraints, getErrorList, getInfoList, getMetaInfo, getName, getStyle, getUndefValue, getWarningList, getXIndex, getXMax, getXMin, getXRange, getYIndex, getYMax, getYMin, getYRange, isAutoNotification, minNeigbourSearchX, removeDataLabel, removeStyle, setAutoNotifaction, setEditConstraints, setName, toString, updateEventListener
-
Methods inherited from class de.gsi.dataset.spi.AbstractStylable
getStyle, setStyle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.gsi.dataset.DataSet
getDataCount, getDataCount, getDataLabel, getName, getStyle, getStyle, getUndefValue, getValue, getX, getXIndex, getXMax, getXMin, getXValues, getY, getYIndex, getYMax, getYMin, getYValues, isAutoNotification, setAutoNotifaction, setStyle
-
Methods inherited from interface de.gsi.dataset.DataSetError
getXErrorNegative, getXErrorNegative, getXErrorPositive, getXErrorPositive, getXErrorsNegative, getXErrorsPositive, getYErrorNegative, getYErrorNegative, getYErrorPositive, getYErrorPositive, getYErrorsNegative, getYErrorsPositive
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, invokeListener, invokeListener, removeListener, updateEventListener
-
-
-
-
Method Detail
-
getThis
protected D getThis()
- Overrides:
getThisin classAbstractDataSet<D extends AbstractErrorDataSet<D>>
-
lock
public D lock()
Description copied from interface:DataSetLocks access to the data set. Multi-threaded applications should lock the data set before setting the data.- Specified by:
lockin interfaceDataSet- Overrides:
lockin classAbstractDataSet<D extends AbstractErrorDataSet<D>>- Returns:
- itself (fluent interface)
-
unlock
public D unlock()
Description copied from interface:DataSetUnlock the data set.- Specified by:
unlockin interfaceDataSet- Overrides:
unlockin classAbstractDataSet<D extends AbstractErrorDataSet<D>>- Returns:
- itself (fluent interface)
-
fireInvalidated
public D fireInvalidated(UpdateEvent event)
Description copied from class:AbstractDataSetNotifies listeners that the data has been invalidated. If the data is added to the chart, it triggers repaint.- Overrides:
fireInvalidatedin classAbstractDataSet<D extends AbstractErrorDataSet<D>>- Parameters:
event- the change event- Returns:
- itself (fluent design)
-
getErrorType
public DataSetError.ErrorType getErrorType()
return the DataSetError.ErrorType of the dataset- Specified by:
getErrorTypein interfaceDataSetError- Returns:
- one of the error types specified in ErrorType
- See Also:
for details
-
setErrorType
public D setErrorType(DataSetError.ErrorType errorType)
sets the error type of the data set- Parameters:
errorType- error type to be set- Returns:
- itself (fluent design)
- See Also:
for details
-
computeLimits
protected D computeLimits()
Computes limits (ranges) of this DataSet including data point errors.- Overrides:
computeLimitsin classAbstractDataSet<D extends AbstractErrorDataSet<D>>- Returns:
- itself (fluent design)
-
-