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
This control provides a group containing a text control.
- Author:
- Francois Chouinard
-
Constructor Summary
ConstructorDescriptionHistogramTimeRangeControl
(HistogramView parentView, org.eclipse.swt.widgets.Composite parent, String groupLabel, long value) Constructor with given group and text values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Format the interval and update the display.void
setValue
(long time) 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
-
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 compositegroupLabel
- A group valuevalue
- A text value
-
-
Method Details
-
setValue
public void setValue(long time) - Specified by:
setValue
in classHistogramTextControl
- Parameters:
time
- the time value to display
-
intervalFormatUpdated
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
-