Package de.gsi.dataset.spi
Class AbstractGridDataSet<U>
- java.lang.Object
-
- de.gsi.dataset.spi.AbstractStylable<D>
-
- de.gsi.dataset.spi.AbstractDataSet<AbstractGridDataSet<U>>
-
- de.gsi.dataset.spi.AbstractGridDataSet<U>
-
- All Implemented Interfaces:
DataSet,DataSetMetaData,EventSource,GridDataSet,java.io.Serializable
- Direct Known Subclasses:
DoubleGridDataSet
public abstract class AbstractGridDataSet<U> extends AbstractDataSet<AbstractGridDataSet<U>> implements GridDataSet
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.gsi.dataset.spi.AbstractDataSet
axisListener, dimension
-
Fields inherited from interface de.gsi.dataset.DataSetMetaData
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT
-
-
Constructor Summary
Constructors Constructor Description AbstractGridDataSet(java.lang.String name, int dimension)default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGridIndex(int dimIndex, double x)doublegetValue(int dimIndex, double... x)Returns the value along the 'dimIndex' axis of a point specified by thexcoordinate.DataSetrecomputeLimits(int dimIndex)-
Methods inherited from class de.gsi.dataset.spi.AbstractDataSet
addDataLabel, addDataStyle, autoNotification, binarySearch, binarySearch, clearMetaInfo, copyAxisDescription, copyDataLabelsAndStyles, copyMetaData, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, fireInvalidated, getAxisDescriptions, getDataLabel, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getStyle, getThis, getValues, getWarningList, hashCode, lock, removeDataLabel, removeStyle, setEditConstraints, setName, toString, updateEventListener
-
Methods inherited from class de.gsi.dataset.spi.AbstractStylable
getStyle, setStyle
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.gsi.dataset.DataSet
get, getAxisDescription, getAxisDescriptions, getDataCount, getDataLabel, getDimension, getIndex, getName, getStyle, getStyle, getValues, lock, set, set, setStyle
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListener
-
Methods inherited from interface de.gsi.dataset.GridDataSet
get, getGrid, getGridValues, getNGrid, getShape, getShape
-
-
-
-
Method Detail
-
getGridIndex
public int getGridIndex(int dimIndex, double x)- Specified by:
getGridIndexin interfaceGridDataSet- Parameters:
dimIndex- Dimension index, smaller than getShape().sizex- value along the specified axis to get the next index for- Returns:
- index which corresponds to the given value
-
getValue
public double getValue(int dimIndex, double... x)Description copied from interface:DataSetReturns the value along the 'dimIndex' axis of a point specified by thexcoordinate.- Specified by:
getValuein interfaceDataSet- Overrides:
getValuein classAbstractDataSet<AbstractGridDataSet<U>>- Parameters:
dimIndex- the dimension index (ie. '0' equals 'X', '1' equals 'Y')x- horizontal 'dimIndex' coordinate- Returns:
- 'dimIndex' value
-
recomputeLimits
public DataSet recomputeLimits(int dimIndex)
- Specified by:
recomputeLimitsin interfaceDataSet- Overrides:
recomputeLimitsin classAbstractDataSet<AbstractGridDataSet<U>>- Parameters:
dimIndex- the dimension to recompute the range for (-1 for all dimensions)- Returns:
- itself for method chaining
-
-