Class TimeCompressionBar
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.tracecompass.tmf.ui.views.uml2sd.ScrollView
org.eclipse.tracecompass.tmf.ui.views.uml2sd.TimeCompressionBar
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.events.DisposeListener
,org.eclipse.swt.graphics.Drawable
,org.eclipse.swt.internal.SWTEventListener
public class TimeCompressionBar
extends ScrollView
implements org.eclipse.swt.events.DisposeListener
The time compression bar implementation.
- Version:
- 1.0
- Author:
- sveyrier
-
Field Summary
Fields inherited from class org.eclipse.tracecompass.tmf.ui.views.uml2sd.ScrollView
ALWAYS_OFF, ALWAYS_ON, AUTO, HBAR, VBAR
Fields inherited from class org.eclipse.swt.widgets.Control
handle
Fields inherited from class org.eclipse.swt.widgets.Widget
nativeZoom
-
Constructor Summary
ConstructorDescriptionTimeCompressionBar
(org.eclipse.swt.widgets.Composite parent, int s) Standard constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a listener to the time compression listener list to be notified about selected deltas.void
highlightRegion
(BaseMessage mes1, BaseMessage mes2) Force the time compression bar to highlight the event occurrences between the two given messages.void
highlightRegionSync
(BaseMessage mes1, BaseMessage mes2) Force the time compression bar to highlight the event occurrences between the two given messages.boolean
void
Removes a time compression listener.void
scrollBy
(int x, int y) void
Sets the current frame.void
setZoom
(float value) Sets the zoom value.void
widgetDisposed
(org.eclipse.swt.events.DisposeEvent e) Methods inherited from class org.eclipse.tracecompass.tmf.ui.views.uml2sd.ScrollView
computeBarVisibility, computeTrim, contentsToView, contentsToViewX, contentsToViewY, ensureVisible, ensureVisible, getClientArea, getContentsHeight, getContentsWidth, getContentsX, getContentsY, getDragAutoScrollPeriod, getHorizontalBar, getHorizontalBarHeight, getHScrollBarIncrement, getHScrollBarMode, getOverviewSize, getVerticalBar, getVerticalBarWidth, getViewControl, getVisibleHeight, getVisiblePart, getVisiblePart, getVisibleWidth, getVScrollBarIncrement, getVScrollBarMode, isDragAutoScroll, isOverviewEnabled, isVisible, isVisible, redraw, replaceControlListener, replaceKeyListener, replaceMouseListener, replaceMouseMoveListener, replacePaintListener, resizeContents, setBackground, setContentsPos, setCornerControl, setCursor, setDragAutoScroll, setDragAutoScrollPeriod, setFocus, setHScrollBarIncrement, setHScrollBarMode, setOverviewEnabled, setOverviewSize, setToolTipText, setVScrollBarIncrement, setVScrollBarMode, viewToContents, viewToContentsX, viewToContentsY
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList, toString
Methods inherited from class org.eclipse.swt.widgets.Scrollable
getScrollbarsMode, setScrollbarsMode
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackgroundImage, setBounds, setBounds, setCapture, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, dispose, getData, getData, getDisplay, getListeners, getStyle, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.swt.graphics.Drawable
isAutoScalable
-
Constructor Details
-
TimeCompressionBar
public TimeCompressionBar(org.eclipse.swt.widgets.Composite parent, int s) Standard constructor- Parameters:
parent
- The parent composites
- The style bits
-
-
Method Details
-
setFrame
Sets the current frame.- Parameters:
theFrame
- The frame to set
-
isFocusControl
public boolean isFocusControl()- Overrides:
isFocusControl
in classorg.eclipse.swt.widgets.Control
-
highlightRegion
Force the time compression bar to highlight the event occurrences between the two given messages. The event occurrences are highlighted on the first message's end lifeline- Parameters:
mes1
- the first messagemes2
- the second message
-
highlightRegionSync
Force the time compression bar to highlight the event occurrences between the two given messages. The event occurrences are highlighted on the first message's end lifeline- Parameters:
mes1
- the first messagemes2
- the second message
-
scrollBy
public void scrollBy(int x, int y) - Overrides:
scrollBy
in classScrollView
- Parameters:
x
- The delta in Xy
- the delta in Y
-
setZoom
public void setZoom(float value) Sets the zoom value.- Parameters:
value
- The zoom value to set.
-
addTimeCompressionListener
Adds a listener to the time compression listener list to be notified about selected deltas.- Parameters:
listener
- The listener to add
-
removeSelectionChangedListener
Removes a time compression listener.- Parameters:
listener
- The listener to remove.
-
widgetDisposed
public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e) - Specified by:
widgetDisposed
in interfaceorg.eclipse.swt.events.DisposeListener
-