public class VisualizationCanvas
extends org.eclipse.swt.widgets.Canvas
Canvas| Constructor and Description |
|---|
VisualizationCanvas(org.eclipse.swt.widgets.Composite parent)
Create
VisualizationCanvas |
VisualizationCanvas(org.eclipse.swt.widgets.Composite parent,
int style)
Create
VisualizationCanvas |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear canvas image
|
void |
highlight(List<IPositionSize> highlightList)
Highlight specified areas
|
void |
setCurrentModelService(IModelService currentModelService)
Set current active model service
|
void |
setSync(boolean sync)
Enable/disable view sync with target
IModelService |
void |
showImage(org.eclipse.swt.graphics.ImageData imageData,
IModelService targetModelService)
Show
ImageData to Canvas and set specified IModelService
as a view sync target |
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIMEchanged, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getVerticalBaraddControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updatepublic VisualizationCanvas(org.eclipse.swt.widgets.Composite parent)
VisualizationCanvasparent - parent Compositepublic VisualizationCanvas(org.eclipse.swt.widgets.Composite parent,
int style)
VisualizationCanvasparent - parent Compositestyle - widget stylepublic void setCurrentModelService(IModelService currentModelService)
currentModelService - target IModelServicepublic void showImage(org.eclipse.swt.graphics.ImageData imageData,
IModelService targetModelService)
ImageData to Canvas and set specified IModelService
as a view sync targetimageData - image data to showtargetModelService - target IModelService for view syncpublic void clear()
public void highlight(List<IPositionSize> highlightList)
highlightList - target area information in IPositionSize formatpublic void setSync(boolean sync)
IModelServicesync - if true, enable view sync