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
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, VBARFields inherited from class org.eclipse.swt.widgets.Control
handleFields inherited from class org.eclipse.swt.widgets.Widget
nativeZoom -
Constructor Summary
ConstructorsConstructorDescriptionTimeCompressionBar(org.eclipse.swt.widgets.Composite parent, int s) Standard constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener to the time compression listener list to be notified about selected deltas.voidhighlightRegion(BaseMessage mes1, BaseMessage mes2) Force the time compression bar to highlight the event occurrences between the two given messages.voidhighlightRegionSync(BaseMessage mes1, BaseMessage mes2) Force the time compression bar to highlight the event occurrences between the two given messages.booleanvoidRemoves a time compression listener.voidscrollBy(int x, int y) voidSets the current frame.voidsetZoom(float value) Sets the zoom value.voidwidgetDisposed(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, viewToContentsYMethods 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, toStringMethods inherited from class org.eclipse.swt.widgets.Scrollable
getScrollbarsMode, setScrollbarsModeMethods 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, getData, 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, setData, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateMethods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, dispose, getData, getDisplay, getListeners, getStyle, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setDataMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
isFocusControlin 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:
scrollByin 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:
widgetDisposedin interfaceorg.eclipse.swt.events.DisposeListener
-