|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.graph.AbstractGraphController
diva.graph.schematic.SchematicGraphController
public class SchematicGraphController
A graph controller for dealing with schematic graphs. Here there are two kinds of nodes, "entity" nodes and "port" nodes. Entities contain the ports, and are connected by them
Nested Class Summary | |
---|---|
class |
SchematicGraphController.ManhattanEdgeRenderer
A class that renders edges as ManhattanEdges. |
Constructor Summary | |
---|---|
SchematicGraphController(Application application)
Create a new Graph controllers with node and edge controllers suitable for a simple schematic editor. |
Method Summary | |
---|---|
EdgeController |
getEdgeController(Object edge)
Given an edge, return the controller associated with that edge. |
BasicNodeController |
getEntityController()
Return the entity controller. |
BasicEdgeController |
getLinkController()
Return the link controller. |
NodeController |
getNodeController(Object node)
Given an node, return the controller associated with that node. |
BasicNodeController |
getPortController()
Return the port controller. |
protected void |
initializeInteraction()
Initialize all interaction on the graph pane. |
Methods inherited from class diva.graph.AbstractGraphController |
---|
addEdge, addEdge, addGraphViewListener, addNode, addNode, addNode, addNode, clear, clearEdge, clearNode, dispatch, drawEdge, drawNode, drawNode, getFigure, getGraphModel, getGraphPane, getSelectionModel, removeEdge, removeGraphViewListener, removeNode, rerender, rerenderEdge, rerenderNode, setFigure, setGraphModel, setGraphPane, setSelectionModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchematicGraphController(Application application)
Method Detail |
---|
protected void initializeInteraction()
initializeInteraction
in class AbstractGraphController
public BasicNodeController getEntityController()
public BasicNodeController getPortController()
public BasicEdgeController getLinkController()
public EdgeController getEdgeController(Object edge)
getEdgeController
in interface GraphController
getEdgeController
in class AbstractGraphController
public NodeController getNodeController(Object node)
getNodeController
in interface GraphController
getNodeController
in class AbstractGraphController
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |