|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.graphx.GraphController
diva.graphx.tutorial.SimpleGraphController
public class SimpleGraphController
A concrete subclass of GraphController that we use in the tutorial examples. This subclasses uses BasicEdgeAdapter and BasicNodeAdapter. It also sets up some default interaction on the pane which works for creating nodes and edges between them.
Nested Class Summary | |
---|---|
protected class |
SimpleGraphController.NodeCreator
An inner class that places a node at the clicked-on point on the screen, if control-clicked with mouse button 1. |
Constructor Summary | |
---|---|
SimpleGraphController(GraphicsPane pane,
GraphModel model)
Create a new controller with default node and edge controllers. |
Method Summary | |
---|---|
EdgeController |
getEdgeController(Object edge)
Return the edge controller. |
NodeController |
getNodeController(Object node)
Return the node controller. |
protected void |
initializeInteraction()
Initialize interaction on the graph pane. |
Methods inherited from class diva.graphx.GraphController |
---|
addEdge, addEdge, addGraphViewListener, addNode, addNode, dispatch, getGraphicsPane, getGraphModel, getSelectionModel, removeEdge, removeGraphViewListener, removeNode, render, rerender, rerenderSubGraph, setGraphicsPane, setGraphModel, setHead, setSelectionModel, setTail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleGraphController(GraphicsPane pane, GraphModel model)
Method Detail |
---|
public EdgeController getEdgeController(Object edge)
getEdgeController
in class GraphController
public NodeController getNodeController(Object node)
getNodeController
in class GraphController
protected void initializeInteraction()
initializeInteraction
in class GraphController
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |