Package de.gsi.dataset.spi
Class DefaultDataSet
- java.lang.Object
-
- de.gsi.dataset.spi.AbstractStylable<D>
-
- de.gsi.dataset.spi.AbstractDataSet<DoubleDataSet>
-
- de.gsi.dataset.spi.DoubleDataSet
-
- de.gsi.dataset.spi.DefaultDataSet
-
- All Implemented Interfaces:
DataSet,DataSetMetaData,EditableDataSet,EventSource
public class DefaultDataSet extends DoubleDataSet
Redirect to the reference implementation declared as 'default'. This implementation should have a good performance and applicability for most use-cases. Presently it is based on the @see DoubleDataSet implementation.- Author:
- rstein
- See Also:
for the reference implementation,for an implementation with asymmetric errors in Y
-
-
Field Summary
-
Fields inherited from class de.gsi.dataset.spi.DoubleDataSet
dataMaxIndex, xValues, yValues
-
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 Constructor Description DefaultDataSet(DataSet another)Creates a new instance ofDefaultDataSetas copy of another (deep-copy).DefaultDataSet(java.lang.String name)Creates a new instance ofDefaultDataSet.DefaultDataSet(java.lang.String name, double[] xValues, double[] yValues, int initalSize, boolean deepCopy)Creates a new instance ofDefaultDataSet.DefaultDataSet(java.lang.String name, int initalSize)Creates a new instance ofDefaultDataSet.
-
Method Summary
-
Methods inherited from class de.gsi.dataset.spi.DoubleDataSet
add, add, add, add, add, clearData, getDataCount, getDataLabelMap, getDataStyleMap, getX, getXValues, getY, getYValues, remove, remove, set, set, set, set
-
Methods inherited from class de.gsi.dataset.spi.AbstractDataSet
addDataLabel, addDataStyle, binarySearchX, binarySearchY, computeLimits, fireInvalidated, getDataCount, getDataLabel, getDefaultDataLabel, getEditConstraints, getErrorList, getInfoList, getMetaInfo, getName, getStyle, getThis, getUndefValue, getWarningList, getXIndex, getXMax, getXMin, getXRange, getYIndex, getYMax, getYMin, getYRange, isAutoNotification, lock, minNeigbourSearchX, removeDataLabel, removeStyle, setAutoNotifaction, setEditConstraints, setName, toString, unlock, 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, getDataLabel, getName, getStyle, getStyle, getUndefValue, getValue, getXIndex, getXMax, getXMin, getYIndex, getYMax, getYMin, isAutoNotification, lock, setAutoNotifaction, setStyle, unlock
-
Methods inherited from interface de.gsi.dataset.EditableDataSet
getEditConstraints, setEditConstraints, setName
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, invokeListener, invokeListener, removeListener, updateEventListener
-
-
-
-
Constructor Detail
-
DefaultDataSet
public DefaultDataSet(java.lang.String name)
Creates a new instance ofDefaultDataSet.- Parameters:
name- name of this DataSet.- Throws:
java.lang.IllegalArgumentException- ifnameisnull
-
DefaultDataSet
public DefaultDataSet(DataSet another)
Creates a new instance ofDefaultDataSetas copy of another (deep-copy).- Parameters:
another- name of this DataSet.
-
DefaultDataSet
public DefaultDataSet(java.lang.String name, int initalSize)Creates a new instance ofDefaultDataSet.- Parameters:
name- name of this DataSet.initalSize- initial buffer size- Throws:
java.lang.IllegalArgumentException- ifnameisnull
-
DefaultDataSet
public DefaultDataSet(java.lang.String name, double[] xValues, double[] yValues, int initalSize, boolean deepCopy)Creates a new instance of
The user than specify via the copy parameter, whether the dataset operates directly on the input arrays themselves or on a copies of the input arrays. If the dataset operates directly on the input arrays, these arrays must not be modified outside of this data set.DefaultDataSet.- Parameters:
name- name of this data set.xValues- X coordinatesyValues- Y coordinatesinitalSize- initial buffer sizedeepCopy- if true, the input array is copied- Throws:
java.lang.IllegalArgumentException- if any of parameters isnullor if arrays with coordinates have different lengths
-
-