Class StillsTabMode
java.lang.Object
uk.ac.gda.beamline.i19.client.mx.imagemodes.stills.StillsTabMode
- All Implemented Interfaces:
IImageMode
Stills data collection mode for I19.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()getName()Returns 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.org.eclipse.swt.widgets.ControlgetTabControl(org.eclipse.swt.widgets.Composite parent) org.eclipse.swt.graphics.ImagebooleanvoidsetStillsJythonCommand(String stillsJythonCommand) booleanReturns true if this mode provides a custom side plot e.g.booleanSupports move on click functionality in the sample view
-
Constructor Details
-
StillsTabMode
public StillsTabMode()
-
-
Method Details
-
getName
-
getTabControl
public org.eclipse.swt.widgets.Control getTabControl(org.eclipse.swt.widgets.Composite parent) -
getTabImage
public org.eclipse.swt.graphics.Image getTabImage() -
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
-
dispose
public void dispose() -
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
-
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
-
getStillsJythonCommand
-
setStillsJythonCommand
-