Package de.gsi.dataset.spi
Class TransposedDataSet.TransposedDataSet3D
- java.lang.Object
-
- de.gsi.dataset.spi.TransposedDataSet
-
- de.gsi.dataset.spi.TransposedDataSet.TransposedDataSet3D
-
- All Implemented Interfaces:
DataSet,DataSet2D,DataSet3D,EventSource,java.io.Serializable
- Enclosing class:
- TransposedDataSet
public static class TransposedDataSet.TransposedDataSet3D extends TransposedDataSet implements DataSet3D
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.gsi.dataset.spi.TransposedDataSet
TransposedDataSet.TransposedDataSet3D
-
-
Field Summary
-
Fields inherited from class de.gsi.dataset.spi.TransposedDataSet
dataSet, grid, nDims, permutation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleget(int dimIndex, int index)Gets the x value of the data point with the index iintgetDataCount()Get the number of data points in the data set.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.doublegetZ(int xIndex, int yIndex)Returns Z coordinate for the specified data point.voidsetPermutation(int[] permutation)-
Methods inherited from class de.gsi.dataset.spi.TransposedDataSet
autoNotification, getAxisDescription, getAxisDescriptions, getDataCount, getDataLabel, getDimension, getIndex, getName, getPermutation, getStyle, getStyle, getValue, getValues, isTransposed, lock, permute, recomputeLimits, setStyle, setTransposed, transpose, transpose, updateEventListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.gsi.dataset.DataSet
getAxisDescription, getAxisDescriptions, getDataCount, getDataLabel, getIndex, getName, getStyle, getStyle, getValues, lock, recomputeLimits, setStyle
-
Methods inherited from interface de.gsi.dataset.DataSet2D
getValue, getValue, getX, getXValues, getY, getYValues
-
Methods inherited from interface de.gsi.dataset.DataSet3D
getDimension
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListener
-
-
-
-
Method Detail
-
getDataCount
public int getDataCount()
Description copied from interface:DataSetGet the number of data points in the data set. The default implementation is the number of points in the highest dimension.- Specified by:
getDataCountin interfaceDataSet- Returns:
- the number of data points
-
getXIndex
public int getXIndex(double x)
Description copied from interface:DataSet2DGets the index of the data point closest to the given x coordinate. If the x coordinate lies outside the range of the data set, the index of the first/last point is returned.
-
getYIndex
public int getYIndex(double y)
Description copied from interface:DataSet2DGets the first index of the data point closest to the given y coordinate. If the y coordinate lies outside the range of the data set, the index of the first/last point is returned.
-
getZ
public double getZ(int xIndex, int yIndex)Description copied from interface:DataSet3DReturns Z coordinate for the specified data point.
-
get
public double get(int dimIndex, int index)Description copied from interface:DataSetGets the x value of the data point with the index i- Specified by:
getin interfaceDataSet- Overrides:
getin classTransposedDataSet- Parameters:
dimIndex- the dimension index (ie. '0' equals 'X', '1' equals 'Y')index- data point index- Returns:
- the x value
-
setPermutation
public void setPermutation(int[] permutation)
- Overrides:
setPermutationin classTransposedDataSet
-
-