public class BrowserGraphDrawer extends AbstractSWTGraphDrawer<org.eclipse.swt.browser.Browser>
AbstractSWTGraphDrawer.AreaSelectionListener, AbstractSWTGraphDrawer.EventListener
control, 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, shouldHandleSelectionEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPopupMenu
public 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 GraphDrawer
moveNode
in class AbstractSWTGraphDrawer<org.eclipse.swt.browser.Browser>
public void redrawNodes(java.util.Collection<Node> nodes)
redrawNodes
in interface GraphDrawer
redrawNodes
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>