Class PlotModeHyper4D

java.lang.Object
org.dawnsci.multidimensional.ui.hyper.PlotModeHyper4D
All Implemented Interfaces:
ILazyPlotMode, IPlotMode

public class PlotModeHyper4D extends Object implements ILazyPlotMode
  • Constructor Details

    • PlotModeHyper4D

      public PlotModeHyper4D()
  • Method Details

    • getOptions

      public String[] getOptions()
      Description copied from interface: IPlotMode
      Get the options describing the axes of the plot

      i.e. "X", "Y", "Z", "Row", "Column"

      Specified by:
      getOptions in interface IPlotMode
      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: IPlotMode
      Slice the data for the plot

      Take 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:
      sliceForPlot in interface IPlotMode
      Parameters:
      lz -
      slice -
      options -
      system -
      Returns:
      datasets
      Throws:
      Exception
    • getName

      public String getName()
      Description copied from interface: IPlotMode
      Get the name of the plot mode
      Specified by:
      getName in interface IPlotMode
      Returns:
      name
    • supportsMultiple

      public boolean supportsMultiple()
      Description copied from interface: IPlotMode
      Whether this mode supports multiple traces as the same time
      Specified by:
      supportsMultiple in interface IPlotMode
      Returns:
      multiple
    • getMinimumRank

      public int getMinimumRank()
      Description copied from interface: IPlotMode
      Get minimum rank of dataset supported for this mode
      Specified by:
      getMinimumRank in interface IPlotMode
      Returns:
      rank
    • isThisMode

      public boolean isThisMode(ITrace trace)
      Description copied from interface: IPlotMode
      Return whether this trace type is from this mode
      Specified by:
      isThisMode in interface IPlotMode
      Parameters:
      trace -
      Returns:
    • getDataDimensions

      public int[] getDataDimensions(Object[] currentOptions)
      Description copied from interface: IPlotMode
      Get the dimensions of the data that will be plotted, as opposed to sliced, with the supplied option set
      Specified by:
      getDataDimensions in interface IPlotMode
      Parameters:
      currentOptions -
      Returns:
      dataDimensions
    • displayData

      public void displayData(ITrace[] update, IPlottingSystem<?> system, Object userObject) throws Exception
      Specified by:
      displayData in interface ILazyPlotMode
      Throws:
      Exception
    • displayData

      public void displayData(org.eclipse.january.dataset.IDataset[] data, ITrace[] update, IPlottingSystem<?> system, Object userObject) throws Exception
      Description copied from interface: IPlotMode
      Takes the sliced IDatasets and displays them.

      Occurs in the UI thread

      Specified by:
      displayData in interface IPlotMode
      Parameters:
      data -
      update -
      system -
      userObject -
      Throws:
      Exception