Class PlotModeHyper4D
java.lang.Object
org.dawnsci.multidimensional.ui.hyper.PlotModeHyper4D
- All Implemented Interfaces:
ILazyPlotMode,IPlotMode
-
Field Summary
Fields inherited from interface org.dawnsci.datavis.api.IPlotMode
PLOT_DATA_NUMBER_EXTRA_PRECISION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayData(ITrace[] update, IPlottingSystem<?> system, Object userObject) voiddisplayData(org.eclipse.january.dataset.IDataset[] data, ITrace[] update, IPlottingSystem<?> system, Object userObject) Takes the sliced IDatasets and displays them.int[]getDataDimensions(Object[] currentOptions) Get the dimensions of the data that will be plotted, as opposed to sliced, with the supplied option setintGet minimum rank of dataset supported for this modegetName()Get the name of the plot modeString[]Get the options describing the axes of the plotbooleanisThisMode(ITrace trace) Return whether this trace type is from this modeorg.eclipse.january.dataset.IDataset[]sliceForPlot(org.eclipse.january.dataset.ILazyDataset lz, org.eclipse.january.dataset.SliceND slice, Object[] options, IPlottingSystem<?> system) Slice the data for the plotbooleanWhether this mode supports multiple traces as the same time
-
Constructor Details
-
PlotModeHyper4D
public PlotModeHyper4D()
-
-
Method Details
-
getOptions
Description copied from interface:IPlotModeGet the options describing the axes of the ploti.e. "X", "Y", "Z", "Row", "Column"
- Specified by:
getOptionsin interfaceIPlotMode- Returns:
- options
-
sliceForPlot
public org.eclipse.january.dataset.IDataset[] sliceForPlot(org.eclipse.january.dataset.ILazyDataset lz, org.eclipse.january.dataset.SliceND slice, Object[] options, IPlottingSystem<?> system) throws Exception Description copied from interface:IPlotModeSlice the data for the plotTake the lazy dataset and return an array of IDataset with axis information set
This is expensive, there should be no UI thread calls in here
- Specified by:
sliceForPlotin interfaceIPlotMode- Parameters:
lz-slice-options-system-- Returns:
- datasets
- Throws:
Exception
-
getName
Description copied from interface:IPlotModeGet the name of the plot mode -
supportsMultiple
public boolean supportsMultiple()Description copied from interface:IPlotModeWhether this mode supports multiple traces as the same time- Specified by:
supportsMultiplein interfaceIPlotMode- Returns:
- multiple
-
getMinimumRank
public int getMinimumRank()Description copied from interface:IPlotModeGet minimum rank of dataset supported for this mode- Specified by:
getMinimumRankin interfaceIPlotMode- Returns:
- rank
-
isThisMode
Description copied from interface:IPlotModeReturn whether this trace type is from this mode- Specified by:
isThisModein interfaceIPlotMode- Parameters:
trace-- Returns:
-
getDataDimensions
Description copied from interface:IPlotModeGet the dimensions of the data that will be plotted, as opposed to sliced, with the supplied option set- Specified by:
getDataDimensionsin interfaceIPlotMode- Parameters:
currentOptions-- Returns:
- dataDimensions
-
displayData
public void displayData(ITrace[] update, IPlottingSystem<?> system, Object userObject) throws Exception - Specified by:
displayDatain interfaceILazyPlotMode- Throws:
Exception
-
displayData
public void displayData(org.eclipse.january.dataset.IDataset[] data, ITrace[] update, IPlottingSystem<?> system, Object userObject) throws Exception Description copied from interface:IPlotModeTakes the sliced IDatasets and displays them.Occurs in the UI thread
- Specified by:
displayDatain interfaceIPlotMode- Parameters:
data-update-system-userObject-- Throws:
Exception
-