Package de.gsi.dataset.spi
Class AbstractDataSet3D<D extends AbstractDataSet3D<D>>
- java.lang.Object
-
- de.gsi.dataset.spi.AbstractStylable<D>
-
- de.gsi.dataset.spi.AbstractDataSet<D>
-
- de.gsi.dataset.spi.AbstractDataSet3D<D>
-
- Type Parameters:
D- java generics handling of DataSet for derived classes (needed for fluent design)
- All Implemented Interfaces:
DataSet,DataSet3D,DataSetMetaData,EventSource
- Direct Known Subclasses:
AbstractHistogram,DoubleDataSet3D
public abstract class AbstractDataSet3D<D extends AbstractDataSet3D<D>> extends AbstractDataSet<D> implements DataSet3D
An abstract implementation ofDataSet3Dinterface.- Author:
- rstein
-
-
Field Summary
Fields Modifier and Type Field Description protected DataRangezRange-
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 AbstractDataSet3D(java.lang.String name)Creates a newAbstractDataSet3D.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DcomputeLimits()recompute data set limitsintgetDataCount()Returns total number of data points in this data set:
xDataCount * yDataCount.intgetXIndex(double x)Gets the index of the data point closest to the given x coordinate.intgetYIndex(double y)Gets the first index of the data point closest to the given y coordinate.DataRangegetZRange()Returns data range of Z values.-
Methods inherited from class de.gsi.dataset.spi.AbstractDataSet
addDataLabel, addDataStyle, binarySearchX, binarySearchY, fireInvalidated, getDataCount, getDataLabel, getDefaultDataLabel, getEditConstraints, getErrorList, getInfoList, getMetaInfo, getName, getStyle, getThis, getUndefValue, getWarningList, getXMax, getXMin, getXRange, 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, getX, getXMax, getXMin, getXValues, getY, getYMax, getYMin, getYValues, isAutoNotification, lock, setAutoNotifaction, setStyle, unlock
-
Methods inherited from interface de.gsi.dataset.DataSet3D
getXDataCount, getYDataCount, getZ, set
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, invokeListener, invokeListener, removeListener, updateEventListener
-
-
-
-
Field Detail
-
zRange
protected DataRange zRange
-
-
Method Detail
-
getDataCount
public int getDataCount()
Returns total number of data points in this data set:
xDataCount * yDataCount.- Specified by:
getDataCountin interfaceDataSet- Returns:
- the number of data points
-
getZRange
public DataRange getZRange()
Description copied from interface:DataSet3DReturns data range of Z values.
-
computeLimits
protected D computeLimits()
recompute data set limits- Overrides:
computeLimitsin classAbstractDataSet<D extends AbstractDataSet3D<D>>- Returns:
- itself (fluent design)
-
getXIndex
public int getXIndex(double x)
Gets the index of the data point closest to the given x coordinate. The index returned may be less then zero or larger the the number of data points in the data set, if the x coordinate lies outside the range of the data set.- Specified by:
getXIndexin interfaceDataSet- Overrides:
getXIndexin classAbstractDataSet<D extends AbstractDataSet3D<D>>- Parameters:
x- the x position of the data point- Returns:
- the index of the data point
-
getYIndex
public int getYIndex(double y)
Gets the first index of the data point closest to the given y coordinate.- Specified by:
getYIndexin interfaceDataSet- Overrides:
getYIndexin classAbstractDataSet<D extends AbstractDataSet3D<D>>- Parameters:
y- the y position of the data point- Returns:
- the index of the data point
-
-