Package gda.rcp.mx.datacollection.model
Class SampleMode
java.lang.Object
gda.rcp.mx.image.viewer.ImageMode
gda.rcp.mx.datacollection.model.SampleMode
- All Implemented Interfaces:
IImageMode,NewLayoutImageMode
-
Field Summary
Fields inherited from class gda.rcp.mx.image.viewer.ImageMode
sampleMoveableScannable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.ControlcreateBottomToolbar(org.eclipse.swt.widgets.Composite parent) Creates the toolbar (if there is one) that appears along the bottom of the OAV image when in this mode.Name to put in the tab for the vieworg.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.booleanbooleanIndicates whether OAV controls to the right of the OAV image should be shown when in this mode.booleanReturns true if this mode provides a custom side plot e.g.booleanSupports move on click functionality in the sample viewMethods inherited from class gda.rcp.mx.image.viewer.ImageMode
createSampleMoveableObserver, getSampleMoveableScannable, isMoveable, setSampleMoveableScannable, updateInSwtThreadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.rcp.mx.image.viewer.IImageMode
getSampleMoveableScannable, isMoveable
-
Constructor Details
-
SampleMode
public SampleMode()
-
-
Method Details
-
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- Overrides:
getSelectionin classImageMode- 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- Overrides:
supportsCustomSidePlotin classImageMode- Returns:
- true if a custom side plot is available, else false
-
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- Overrides:
supportsMoveOnClickin classImageMode- Returns:
- true if this mode supports move on click, else false
-
getSidePlot
Description copied from interface:IImageModeIfsupportsCustomSidePlotis true, then this method returns the custom side plot/overlay.- Specified by:
getSidePlotin interfaceIImageMode- Overrides:
getSidePlotin classImageMode- 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:NewLayoutImageModeCreates the toolbar (if there is one) that appears along the bottom of the OAV image when in this mode.- Specified by:
createBottomToolbarin interfaceNewLayoutImageMode
-
showOavControlsOnRight
public boolean showOavControlsOnRight()Description copied from interface:NewLayoutImageModeIndicates whether OAV controls to the right of the OAV image should be shown when in this mode.- Specified by:
showOavControlsOnRightin interfaceNewLayoutImageMode
-
getOavViewName
Description copied from interface:NewLayoutImageModeName to put in the tab for the view- Specified by:
getOavViewNamein interfaceNewLayoutImageMode
-
inMultipointMode
public boolean inMultipointMode()
-