Class LiveStreamViewWithHistogram

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
uk.ac.gda.client.live.stream.view.LiveStreamView
uk.ac.gda.client.live.stream.view.LiveStreamViewWithHistogram
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class LiveStreamViewWithHistogram extends LiveStreamView
Extension of LiveStreamView, with a histogram. Can be further extended by implementing addCustomWidgets(Composite)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from interface org.eclipse.ui.IWorkbenchPart

    PROP_TITLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addCustomWidgets(org.eclipse.swt.widgets.Composite parent)
    Use this method to add custom UI to the stream view with histogram Parent has a grid layout
    protected void
    createLivePlot(org.eclipse.swt.widgets.Composite parent, String secondaryId)
    This is the method that actually creates a live stream and sets up the plotting composite.
    void
     
    protected void
    openViewWithSecondaryId(String secondaryId, boolean closeExistingView)
    Open a live stream view with the secondary ID specified
    void
     

    Methods inherited from class org.eclipse.ui.part.ViewPart

    checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName

    Methods inherited from class org.eclipse.ui.part.WorkbenchPart

    addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy

    Methods inherited from class org.eclipse.core.commands.common.EventManager

    addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.ui.IWorkbenchPart

    addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
  • Field Details

  • Constructor Details

    • LiveStreamViewWithHistogram

      public LiveStreamViewWithHistogram()
  • Method Details

    • addCustomWidgets

      protected void addCustomWidgets(org.eclipse.swt.widgets.Composite parent)
      Use this method to add custom UI to the stream view with histogram Parent has a grid layout
      Parameters:
      parent -
    • createLivePlot

      protected void createLivePlot(org.eclipse.swt.widgets.Composite parent, String secondaryId)
      Description copied from class: LiveStreamView
      This is the method that actually creates a live stream and sets up the plotting composite.

      To get here the secondary id of the view need to be set (hopefully to a valid camera id)

      When extending this class it is necessary to call this method with the composite the plot should be drawn on.

      Overrides:
      createLivePlot in class LiveStreamView
      Parameters:
      parent - Composite to draw on
      secondaryId - The name of the camera to use and type of stream to display
    • openViewWithSecondaryId

      protected void openViewWithSecondaryId(String secondaryId, boolean closeExistingView)
      Description copied from class: LiveStreamView
      Open a live stream view with the secondary ID specified
      Overrides:
      openViewWithSecondaryId in class LiveStreamView
      Parameters:
      secondaryId -
      closeExistingView - close the existing view first
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      dispose in class LiveStreamView
    • setCustomWidget

      public void setCustomWidget(ICustomWidget customWidget)