|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
org.eclipse.actf.visualization.ui.VisualizationCanvas
public class VisualizationCanvas
Utility class to show visualization result into Canvas
Field Summary |
---|
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
VisualizationCanvas(Composite parent)
Create VisualizationCanvas |
|
VisualizationCanvas(Composite parent,
int style)
Create VisualizationCanvas |
Method Summary | |
---|---|
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(ImageData imageData,
IModelService targetModelService)
Show ImageData to Canvas and set specified IModelService
as a view sync target |
Methods inherited from class org.eclipse.swt.widgets.Canvas |
---|
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VisualizationCanvas(Composite parent)
VisualizationCanvas
parent
- parent Composite
public VisualizationCanvas(Composite parent, int style)
VisualizationCanvas
parent
- parent Composite
style
- widget styleMethod Detail |
---|
public void setCurrentModelService(IModelService currentModelService)
currentModelService
- target IModelService
public void showImage(ImageData imageData, IModelService targetModelService)
ImageData
to Canvas and set specified IModelService
as a view sync target
imageData
- 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)
IModelService
sync
- if true, enable view sync
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |