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
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 Summary
ConstructorDescriptionTimeRangeHistogram
(HistogramView view, org.eclipse.swt.widgets.Composite parent) Constructor.TimeRangeHistogram
(HistogramView view, org.eclipse.swt.widgets.Composite parent, boolean sendTimeAlignSignals) Full Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the histogram and reset the datavoid
mouseDown
(org.eclipse.swt.events.MouseEvent event) void
mouseMove
(org.eclipse.swt.events.MouseEvent event) void
mouseUp
(org.eclipse.swt.events.MouseEvent event) void
paintControl
(org.eclipse.swt.events.PaintEvent event) void
setFullRange
(long startTime, long endTime) Sets the full time range of the whole trace.void
setTimeRange
(long startTime, long duration) Sets the time range of the histogramMethods inherited from class org.eclipse.tracecompass.tmf.ui.views.histogram.Histogram
addKeyListener, addMouseWheelListener, controlMoved, controlResized, dispose, getDataModel, getEndTime, getMaxNbTraces, getOffset, getPointAreaOffset, getPointAreaWidth, getStartTime, getTimeLimit, getTimestamp, getTraceColor, keyPressed, keyReleased, modelUpdated, mouseDoubleClick, mouseEnter, mouseExit, mouseHover, removeKeyListener, removeMouseWheelListener, setSelection, setStatusLineManager, showTraces, timestampFormatUpdated, updateTimeRange
-
Constructor Details
-
TimeRangeHistogram
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 viewparent
- The parent compositesendTimeAlignSignals
- 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 -
setTimeRange
public void setTimeRange(long startTime, long duration) Sets the time range of the histogram- Parameters:
startTime
- The start timeduration
- 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 timeendTime
- The end time
-
mouseDown
public void mouseDown(org.eclipse.swt.events.MouseEvent event) -
mouseUp
public void mouseUp(org.eclipse.swt.events.MouseEvent event) -
mouseMove
public void mouseMove(org.eclipse.swt.events.MouseEvent event) -
paintControl
public void paintControl(org.eclipse.swt.events.PaintEvent event) - Specified by:
paintControl
in interfaceorg.eclipse.swt.events.PaintListener
- Overrides:
paintControl
in classHistogram
-