Class LiveStreamViewCameraControlsToggleOverlay

java.lang.Object
uk.ac.gda.client.live.stream.view.customui.LiveStreamViewCameraControlsToggleOverlay
All Implemented Interfaces:
LiveStreamViewCameraControlsExtension

public class LiveStreamViewCameraControlsToggleOverlay extends Object implements LiveStreamViewCameraControlsExtension
Extension for LiveStreamViewCameraControls that creates a check box to show and control whether an overlay is activated.

There is no GDA object that allows you both to change a PV of type DBR_Enum and to monitor it, so this class must be initialised with two Scannables, one for each function, for example a SimplePVScannable and an EpicsMonitor respectively.

  • Constructor Details

    • LiveStreamViewCameraControlsToggleOverlay

      public LiveStreamViewCameraControlsToggleOverlay(Scannable controlScannable, Scannable monitorScannable)
  • Method Details

    • createUi

      public void createUi(org.eclipse.swt.widgets.Composite composite, CameraControl cameraControl)
      Description copied from interface: LiveStreamViewCameraControlsExtension
      Create the UI associated with this extension

      The parent composite will allocate one column to the UI. This class may, of course, subdivide this into multiple columns.

      Specified by:
      createUi in interface LiveStreamViewCameraControlsExtension
      Parameters:
      composite - The parent composite on which to create thus UI
      cameraControl - Object to control the camera
    • setOverlayNotUsed

      public void setOverlayNotUsed(Object overlayNotUsed)
    • setOverlayUsed

      public void setOverlayUsed(Object overlayUsed)