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
TODO: allow permutations to change number of grid dimensions, while enforcing contract, that all grid axes must come before data axes.- Author:
- Alexander Krimm
- 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, permutation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDataCount()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, get, 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
get, getAxisDescription, getAxisDescriptions, getDataLabel, getIndex, getName, getStyle, getStyle, getValues, lock, recomputeLimits, setStyle
-
Methods inherited from interface de.gsi.dataset.DataSet2D
getDataCount, 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:DataSet2DGet the number of data points in the data set.- Specified by:
getDataCountin interfaceDataSet- Specified by:
getDataCountin interfaceDataSet2D- 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. 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.
-
getYIndex
public int getYIndex(double y)
Description copied from interface:DataSet2DGets the first index of the data point closest to the given y coordinate.
-
getZ
public double getZ(int xIndex, int yIndex)Description copied from interface:DataSet3DReturns Z coordinate for the specified data point.
-
setPermutation
public void setPermutation(int[] permutation)
- Overrides:
setPermutationin classTransposedDataSet
-
-