Class HistogramCurrentTimeControl

java.lang.Object
org.eclipse.tracecompass.tmf.ui.views.histogram.HistogramTextControl
org.eclipse.tracecompass.tmf.ui.views.histogram.HistogramCurrentTimeControl
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.FocusListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.internal.SWTEventListener
Direct Known Subclasses:
HistogramSelectionEndControl, HistogramSelectionStartControl

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

    • HistogramCurrentTimeControl

      public HistogramCurrentTimeControl(HistogramView parentView, org.eclipse.swt.widgets.Composite parent, String label, long value)
      Standard constructor
      Parameters:
      parentView - A parent histogram view
      parent - A parent composite to draw in
      label - A label
      value - A value
  • Method Details

    • setValue

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

      public void timestampFormatUpdated(TmfTimestampFormatUpdateSignal signal)
      Format the timestamp 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