Class SampleMode

java.lang.Object
gda.rcp.mx.image.viewer.ImageMode
gda.rcp.mx.datacollection.model.SampleMode
All Implemented Interfaces:
IImageMode, NewLayoutImageMode

public class SampleMode extends ImageMode implements NewLayoutImageMode
  • Constructor Details

    • SampleMode

      public SampleMode()
  • Method Details

    • getSelection

      public org.eclipse.jface.viewers.ISelection getSelection()
      Description copied from interface: IImageMode
      Returns the selection to be set when this mode is selected
      Specified by:
      getSelection in interface IImageMode
      Overrides:
      getSelection in class ImageMode
      Returns:
      ISelection object, or null if there is no active selection
    • supportsCustomSidePlot

      public boolean supportsCustomSidePlot()
      Description copied from interface: IImageMode
      Returns true if this mode provides a custom side plot e.g. ui overlay functionality such as a grid or line
      Specified by:
      supportsCustomSidePlot in interface IImageMode
      Overrides:
      supportsCustomSidePlot in class ImageMode
      Returns:
      true if a custom side plot is available, else false
    • supportsMoveOnClick

      public boolean supportsMoveOnClick()
      Description copied from interface: IImageMode
      Supports move on click functionality in the sample view

      Modes should return false if they wish to override mouse click behaviour with custom functionality

      Specified by:
      supportsMoveOnClick in interface IImageMode
      Overrides:
      supportsMoveOnClick in class ImageMode
      Returns:
      true if this mode supports move on click, else false
    • getSidePlot

      public SidePlot getSidePlot(ImageView imageView)
      Description copied from interface: IImageMode
      If supportsCustomSidePlot is true, then this method returns the custom side plot/overlay.
      Specified by:
      getSidePlot in interface IImageMode
      Overrides:
      getSidePlot in class ImageMode
      Parameters:
      imageView - ImageView
      Returns:
      SidePlot must not be null
    • createBottomToolbar

      public org.eclipse.swt.widgets.Control createBottomToolbar(org.eclipse.swt.widgets.Composite parent)
      Description copied from interface: NewLayoutImageMode
      Creates the toolbar (if there is one) that appears along the bottom of the OAV image when in this mode.
      Specified by:
      createBottomToolbar in interface NewLayoutImageMode
    • showOavControlsOnRight

      public boolean showOavControlsOnRight()
      Description copied from interface: NewLayoutImageMode
      Indicates whether OAV controls to the right of the OAV image should be shown when in this mode.
      Specified by:
      showOavControlsOnRight in interface NewLayoutImageMode
    • getOavViewName

      public String getOavViewName()
      Description copied from interface: NewLayoutImageMode
      Name to put in the tab for the view
      Specified by:
      getOavViewName in interface NewLayoutImageMode
    • inMultipointMode

      public boolean inMultipointMode()