public class BrowserGraphDrawer extends AbstractSWTGraphDrawer<org.eclipse.swt.browser.Browser>
AbstractSWTGraphDrawer.AreaSelectionListener, AbstractSWTGraphDrawer.EventListenercontrol, frame, graph, intermediateLayout, mouseListener, selectionListener| Constructor and Description |
|---|
BrowserGraphDrawer(org.eclipse.swt.widgets.Composite parent) |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.swt.browser.Browser |
createControl(org.eclipse.swt.widgets.Composite parent) |
protected void |
drawCurrentGraph() |
protected org.eclipse.swt.graphics.Rectangle |
getBoundsForNode(Node node) |
void |
moveNode(Node node,
Position newPosition) |
void |
redrawNodes(java.util.Collection<Node> nodes) |
(package private) static void |
setupFont(org.eclipse.swt.browser.Browser browser)
Set the font to be used in the body of the given browser's current page
to the font which is configured in the settings.
|
protected void |
updateSize(double width,
double height) |
addMouseListener, addPopupMenu, addSelectionListener, drawGraph, getColorForNode, getControl, getCurrentGraph, getShapeForNode, getSize, graphToScreenCoord, isReadyForInteractions, notifyMouseListeners, notifySelectionListeners, redraw, removeMouseListener, removeSelectionListener, resetNodeBackgroundColor, screenToGraphCoord, setIntermediateLayout, setNodeBackgroundColor, setNodeShape, shouldHandleSelectionEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPopupMenupublic BrowserGraphDrawer(org.eclipse.swt.widgets.Composite parent)
static void setupFont(org.eclipse.swt.browser.Browser browser)
browser - The browser to set the font to be used in the body to.public void moveNode(Node node, Position newPosition)
moveNode in interface GraphDrawermoveNode in class AbstractSWTGraphDrawer<org.eclipse.swt.browser.Browser>public void redrawNodes(java.util.Collection<Node> nodes)
redrawNodes in interface GraphDrawerredrawNodes in class AbstractSWTGraphDrawer<org.eclipse.swt.browser.Browser>protected org.eclipse.swt.graphics.Rectangle getBoundsForNode(Node node)
getBoundsForNode in class AbstractSWTGraphDrawer<org.eclipse.swt.browser.Browser>protected org.eclipse.swt.browser.Browser createControl(org.eclipse.swt.widgets.Composite parent)
createControl in class AbstractSWTGraphDrawer<org.eclipse.swt.browser.Browser>protected void drawCurrentGraph()
drawCurrentGraph in class AbstractSWTGraphDrawer<org.eclipse.swt.browser.Browser>protected void updateSize(double width,
double height)
updateSize in class AbstractSWTGraphDrawer<org.eclipse.swt.browser.Browser>