Class HistogramTimeRangeControl

java.lang.Object
org.eclipse.tracecompass.tmf.ui.views.histogram.HistogramTextControl
org.eclipse.tracecompass.tmf.ui.views.histogram.HistogramTimeRangeControl
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.FocusListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.internal.SWTEventListener

public class HistogramTimeRangeControl extends HistogramTextControl
This control provides a group containing a text control.
Author:
Francois Chouinard
  • Constructor Details

    • HistogramTimeRangeControl

      public HistogramTimeRangeControl(HistogramView parentView, org.eclipse.swt.widgets.Composite parent, String groupLabel, long value)
      Constructor with given group and text values.
      Parameters:
      parentView - The parent histogram view.
      parent - The parent composite
      groupLabel - A group value
      value - A text value
  • Method Details

    • setValue

      public void setValue(long time)
      Specified by:
      setValue in class HistogramTextControl
      Parameters:
      time - the time value to display
    • intervalFormatUpdated

      public void intervalFormatUpdated(TmfTimestampFormatUpdateSignal signal)
      Format the interval and update the display. Compute the new text size, adjust the text and group widgets and then refresh the view layout.
      Parameters:
      signal - the incoming signal