public class VisualInterfaceViewer extends org.eclipse.swt.widgets.Composite implements SummaryProvider
| Constructor and Description |
|---|
VisualInterfaceViewer(org.eclipse.swt.widgets.Composite parent,
int style,
String uri,
Map<String,Object> scriptObjects,
Map<String,String> properties)
Create a new viewer
|
VisualInterfaceViewer(org.eclipse.swt.widgets.Composite parent,
int style,
SymbolLoader symbolLoader,
Map<String,Object> scriptObjects,
Map<String,String> properties) |
VisualInterfaceViewer(org.eclipse.swt.widgets.Composite parent,
int style,
SymbolLoader symbolLoader,
Map<String,Object> scriptObjects,
Map<String,String> properties,
FactoryContext factoryContext) |
VisualInterfaceViewer(org.eclipse.swt.widgets.Composite parent,
int style,
Symbol symbol,
Map<String,Object> scriptObjects,
Map<String,String> properties) |
VisualInterfaceViewer(org.eclipse.swt.widgets.Composite parent,
int style,
URI uri,
Map<String,Object> scriptObjects,
Map<String,String> properties)
Create a new viewer
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSummaryListener(SummaryListener listener) |
protected Controller |
create(Primitive element) |
protected void |
create(SymbolLoader symbolLoader) |
protected org.eclipse.draw2d.FigureCanvas |
createCanvas() |
Set<org.eclipse.emf.common.util.URI> |
getResources()
Gets the loaded resources
Note that this method does not return the symbol resource which was passed to the constructor. |
SummaryInformation |
getSummary() |
protected void |
handleResize(org.eclipse.swt.graphics.Rectangle bounds) |
boolean |
isZooming() |
void |
removeSummaryListener(SummaryListener listener) |
void |
setZooming(Boolean zooming) |
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, 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, getTextDirection, 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, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateaddDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toStringpublic VisualInterfaceViewer(org.eclipse.swt.widgets.Composite parent,
int style,
URI uri,
Map<String,Object> scriptObjects,
Map<String,String> properties)
parent - the parent compositestyle - the composite styleuri - the URI from which the root symbol should be loadedscriptObjects - optionally some script objects that get injected into the
script context. May be null.properties - additional properties for symbol creation. May be
null. These properties override the symbols
properties.public VisualInterfaceViewer(org.eclipse.swt.widgets.Composite parent,
int style,
String uri,
Map<String,Object> scriptObjects,
Map<String,String> properties)
parent - the parent compositestyle - the composite styleuri - the URI from which the root symbol should be loadedscriptObjects - optionally some script objects that get injected into the
script context. May be nullproperties - additional properties for symbol creation. May be
null. These properties override the symbols
properties.public VisualInterfaceViewer(org.eclipse.swt.widgets.Composite parent,
int style,
Symbol symbol,
Map<String,Object> scriptObjects,
Map<String,String> properties)
public VisualInterfaceViewer(org.eclipse.swt.widgets.Composite parent,
int style,
SymbolLoader symbolLoader,
Map<String,Object> scriptObjects,
Map<String,String> properties)
public VisualInterfaceViewer(org.eclipse.swt.widgets.Composite parent,
int style,
SymbolLoader symbolLoader,
Map<String,Object> scriptObjects,
Map<String,String> properties,
FactoryContext factoryContext)
public Set<org.eclipse.emf.common.util.URI> getResources()
public boolean isZooming()
public void setZooming(Boolean zooming)
protected org.eclipse.draw2d.FigureCanvas createCanvas()
protected void handleResize(org.eclipse.swt.graphics.Rectangle bounds)
protected void create(SymbolLoader symbolLoader)
protected Controller create(Primitive element) throws Exception
Exceptionpublic void addSummaryListener(SummaryListener listener)
addSummaryListener in interface SummaryProviderpublic void removeSummaryListener(SummaryListener listener)
removeSummaryListener in interface SummaryProviderpublic SummaryInformation getSummary()
getSummary in interface SummaryProviderCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.