Class TimeRangeHistogram

java.lang.Object
org.eclipse.tracecompass.tmf.ui.views.histogram.Histogram
org.eclipse.tracecompass.tmf.ui.views.histogram.TimeRangeHistogram
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.ControlListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.events.MouseListener, org.eclipse.swt.events.MouseMoveListener, org.eclipse.swt.events.MouseTrackListener, org.eclipse.swt.events.PaintListener, org.eclipse.swt.internal.SWTEventListener, IHistogramModelListener

public class TimeRangeHistogram extends Histogram
A basic histogram widget that displays the event distribution of a specific time range of a trace. It has the following additional features:
  • zoom in: mouse wheel up (or forward)
  • zoom out: mouse wheel down (or backward)
Version:
1.1
Author:
Francois Chouinard
  • Constructor Details

    • TimeRangeHistogram

      public TimeRangeHistogram(HistogramView view, org.eclipse.swt.widgets.Composite parent)
      Constructor.
      Parameters:
      view - A reference to the parent TMF view.
      parent - A parent composite
    • TimeRangeHistogram

      public TimeRangeHistogram(HistogramView view, org.eclipse.swt.widgets.Composite parent, boolean sendTimeAlignSignals)
      Full Constructor
      Parameters:
      view - The parent histogram view
      parent - The parent composite
      sendTimeAlignSignals - Flag to send time alignment signals or not
      Since:
      1.0
  • Method Details

    • clear

      public void clear()
      Description copied from class: Histogram
      Clear the histogram and reset the data
      Overrides:
      clear in class Histogram
    • setTimeRange

      public void setTimeRange(long startTime, long duration)
      Sets the time range of the histogram
      Parameters:
      startTime - The start time
      duration - The duration of the time range
    • setFullRange

      public void setFullRange(long startTime, long endTime)
      Sets the full time range of the whole trace.
      Parameters:
      startTime - The start time
      endTime - The end time
    • mouseDown

      public void mouseDown(org.eclipse.swt.events.MouseEvent event)
      Specified by:
      mouseDown in interface org.eclipse.swt.events.MouseListener
      Overrides:
      mouseDown in class Histogram
    • mouseUp

      public void mouseUp(org.eclipse.swt.events.MouseEvent event)
      Specified by:
      mouseUp in interface org.eclipse.swt.events.MouseListener
      Overrides:
      mouseUp in class Histogram
    • mouseMove

      public void mouseMove(org.eclipse.swt.events.MouseEvent event)
      Specified by:
      mouseMove in interface org.eclipse.swt.events.MouseMoveListener
      Overrides:
      mouseMove in class Histogram
    • paintControl

      public void paintControl(org.eclipse.swt.events.PaintEvent event)
      Specified by:
      paintControl in interface org.eclipse.swt.events.PaintListener
      Overrides:
      paintControl in class Histogram