Package gda.rcp.mx.image.viewer
Class ImageMode
java.lang.Object
gda.rcp.mx.image.viewer.ImageMode
- All Implemented Interfaces:
IImageMode
- Direct Known Subclasses:
AbstractGridMode,CentringMode,FluorescenceMode,LineMode,SampleMode,StratCalMode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidReturns 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.booleanvoidsetSampleMoveableScannable(SampleMoveable sampleMoveableScannable) booleanReturns true if this mode provides a custom side plot e.g.booleanSupports move on click functionality in the sample viewprotected voidupdateInSwtThread(SampleMoveable source, Object arg)
-
Field Details
-
sampleMoveableScannable
-
-
Constructor Details
-
ImageMode
public ImageMode()
-
-
Method Details
-
isMoveable
public boolean isMoveable()- Specified by:
isMoveablein interfaceIImageMode- Returns:
- boolean - returns true if the beamline is idle and so the Control page should be be allowed to perform operations
-
getSampleMoveableScannable
Description copied from interface:IImageModeReturns the SampleMoveable which defines if the beamline is busy and so the Control page should not be operated.- Specified by:
getSampleMoveableScannablein interfaceIImageMode- Returns:
- SampleMoveable
-
setSampleMoveableScannable
-
createSampleMoveableObserver
protected void createSampleMoveableObserver() -
updateInSwtThread
-
supportsMoveOnClick
public boolean supportsMoveOnClick()Description copied from interface:IImageModeSupports move on click functionality in the sample viewModes should return false if they wish to override mouse click behaviour with custom functionality
- Specified by:
supportsMoveOnClickin interfaceIImageMode- Returns:
- true if this mode supports move on click, else false
-
getSelection
public org.eclipse.jface.viewers.ISelection getSelection()Description copied from interface:IImageModeReturns the selection to be set when this mode is selected- Specified by:
getSelectionin interfaceIImageMode- Returns:
- ISelection object, or null if there is no active selection
-
supportsCustomSidePlot
public boolean supportsCustomSidePlot()Description copied from interface:IImageModeReturns true if this mode provides a custom side plot e.g. ui overlay functionality such as a grid or line- Specified by:
supportsCustomSidePlotin interfaceIImageMode- Returns:
- true if a custom side plot is available, else false
-
getSidePlot
Description copied from interface:IImageModeIfsupportsCustomSidePlotis true, then this method returns the custom side plot/overlay.- Specified by:
getSidePlotin interfaceIImageMode- Parameters:
imageView- ImageView- Returns:
- SidePlot must not be null
-