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
This control provides a group containing a text control.
- Author:
- Francois Chouinard
-
Constructor Summary
ConstructorsConstructorDescriptionHistogramCurrentTimeControl(HistogramView parentView, org.eclipse.swt.widgets.Composite parent, String label, long value) Standard constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidsetValue(long time) voidFormat the timestamp and update the display.Methods inherited from class org.eclipse.tracecompass.tmf.ui.views.histogram.HistogramTextControl
addMouseWheelListener, dispose, focusGained, focusLost, getValue, isDisposed, keyPressed, keyReleased, removeMouseWheelListener, setEnabled, setLayoutData
-
Constructor Details
-
HistogramCurrentTimeControl
public HistogramCurrentTimeControl(HistogramView parentView, org.eclipse.swt.widgets.Composite parent, String label, long value) Standard constructor- Parameters:
parentView- A parent histogram viewparent- A parent composite to draw inlabel- A labelvalue- A value
-
-
Method Details
-
setValue
public void setValue(long time) - Specified by:
setValuein classHistogramTextControl- Parameters:
time- the time value to display
-
timestampFormatUpdated
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
-