Package gda.rcp.mx.image.viewer
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 TypeMethodDescriptionReturns the SampleMoveable which defines if the beamline is busy and so the Control page should not be operated.org.eclipse.jface.viewers.ISelectionReturns the selection to be set when this mode is selectedgetSidePlot(ImageView imageView) IfsupportsCustomSidePlotis true, then this method returns the custom side plot/overlay.booleanbooleanReturns true if this mode provides a custom side plot e.g.booleanSupports 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
IfsupportsCustomSidePlotis 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 viewModes 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
-