Class TimeCompressionBar

java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.tracecompass.tmf.ui.views.uml2sd.ScrollView
org.eclipse.tracecompass.tmf.ui.views.uml2sd.TimeCompressionBar
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.DisposeListener, org.eclipse.swt.graphics.Drawable, org.eclipse.swt.internal.SWTEventListener

public class TimeCompressionBar extends ScrollView implements org.eclipse.swt.events.DisposeListener

The time compression bar implementation.

Version:
1.0
Author:
sveyrier
  • Constructor Details

    • TimeCompressionBar

      public TimeCompressionBar(org.eclipse.swt.widgets.Composite parent, int s)
      Standard constructor
      Parameters:
      parent - The parent composite
      s - The style bits
  • Method Details

    • setFrame

      public void setFrame(Frame theFrame)
      Sets the current frame.
      Parameters:
      theFrame - The frame to set
    • isFocusControl

      public boolean isFocusControl()
      Overrides:
      isFocusControl in class org.eclipse.swt.widgets.Control
    • highlightRegion

      public void highlightRegion(BaseMessage mes1, BaseMessage mes2)
      Force the time compression bar to highlight the event occurrences between the two given messages. The event occurrences are highlighted on the first message's end lifeline
      Parameters:
      mes1 - the first message
      mes2 - the second message
    • highlightRegionSync

      public void highlightRegionSync(BaseMessage mes1, BaseMessage mes2)
      Force the time compression bar to highlight the event occurrences between the two given messages. The event occurrences are highlighted on the first message's end lifeline
      Parameters:
      mes1 - the first message
      mes2 - the second message
    • scrollBy

      public void scrollBy(int x, int y)
      Overrides:
      scrollBy in class ScrollView
      Parameters:
      x - The delta in X
      y - the delta in Y
    • setZoom

      public void setZoom(float value)
      Sets the zoom value.
      Parameters:
      value - The zoom value to set.
    • addTimeCompressionListener

      public void addTimeCompressionListener(ITimeCompressionListener listener)
      Adds a listener to the time compression listener list to be notified about selected deltas.
      Parameters:
      listener - The listener to add
    • removeSelectionChangedListener

      public void removeSelectionChangedListener(ITimeCompressionListener listener)
      Removes a time compression listener.
      Parameters:
      listener - The listener to remove.
    • widgetDisposed

      public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
      Specified by:
      widgetDisposed in interface org.eclipse.swt.events.DisposeListener