Interface IImageMode

All Known Subinterfaces:
NewLayoutImageMode
All Known Implementing Classes:
AbstractGridMode, CentringMode, CentringTabMode, FluorescenceMode, GridMode, GridResultsMode, ImageMode, LineMode, SampleMode, StillsTabMode, StratCalMode

public interface IImageMode
Interface to describe a mode in the sample/image view. Each mode provides a tab control and optionally an image, selection and ability to provide a custom side plot.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the SampleMoveable which defines if the beamline is busy and so the Control page should not be operated.
    org.eclipse.jface.viewers.ISelection
    Returns the selection to be set when this mode is selected
    If supportsCustomSidePlot is true, then this method returns the custom side plot/overlay.
    boolean
     
    boolean
    Returns true if this mode provides a custom side plot e.g.
    boolean
    Supports move on click functionality in the sample view
  • Method Details

    • getSelection

      org.eclipse.jface.viewers.ISelection getSelection()
      Returns the selection to be set when this mode is selected
      Returns:
      ISelection object, or null if there is no active selection
    • supportsCustomSidePlot

      boolean supportsCustomSidePlot()
      Returns true if this mode provides a custom side plot e.g. ui overlay functionality such as a grid or line
      Returns:
      true if a custom side plot is available, else false
    • getSidePlot

      SidePlot getSidePlot(ImageView imageView)
      If supportsCustomSidePlot is true, then this method returns the custom side plot/overlay.
      Parameters:
      imageView - ImageView
      Returns:
      SidePlot must not be null
    • supportsMoveOnClick

      boolean supportsMoveOnClick()
      Supports move on click functionality in the sample view

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

      Returns:
      true if this mode supports move on click, else false
    • isMoveable

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

      SampleMoveable getSampleMoveableScannable()
      Returns the SampleMoveable which defines if the beamline is busy and so the Control page should not be operated.
      Returns:
      SampleMoveable