Class ImageMode

java.lang.Object
gda.rcp.mx.image.viewer.ImageMode
All Implemented Interfaces:
IImageMode
Direct Known Subclasses:
AbstractGridMode, CentringMode, FluorescenceMode, LineMode, SampleMode, StratCalMode

public abstract class ImageMode extends Object implements IImageMode
  • Field Details

    • sampleMoveableScannable

      protected SampleMoveable sampleMoveableScannable
  • Constructor Details

    • ImageMode

      public ImageMode()
  • Method Details

    • isMoveable

      public boolean isMoveable()
      Specified by:
      isMoveable in interface IImageMode
      Returns:
      boolean - returns true if the beamline is idle and so the Control page should be be allowed to perform operations
    • getSampleMoveableScannable

      public SampleMoveable getSampleMoveableScannable()
      Description copied from interface: IImageMode
      Returns the SampleMoveable which defines if the beamline is busy and so the Control page should not be operated.
      Specified by:
      getSampleMoveableScannable in interface IImageMode
      Returns:
      SampleMoveable
    • setSampleMoveableScannable

      public void setSampleMoveableScannable(SampleMoveable sampleMoveableScannable)
    • createSampleMoveableObserver

      protected void createSampleMoveableObserver()
    • updateInSwtThread

      protected void updateInSwtThread(SampleMoveable source, Object arg)
    • 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
      Returns:
      true if this mode supports move on click, else false
    • 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
      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
      Returns:
      true if a custom side plot is available, 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
      Parameters:
      imageView - ImageView
      Returns:
      SidePlot must not be null