diva.graph.schematic
Class SchematicGraphController

java.lang.Object
  extended by diva.graph.AbstractGraphController
      extended by diva.graph.schematic.SchematicGraphController
All Implemented Interfaces:
GraphController

public class SchematicGraphController
extends AbstractGraphController

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

Version:
$Revision: 1.14 $
Author:
Steve Neuendorffer (neuendor@eecs.berkeley.edu)

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

SchematicGraphController

public SchematicGraphController(Application application)
Create a new Graph controllers with node and edge controllers suitable for a simple schematic editor.

Method Detail

initializeInteraction

protected void initializeInteraction()
Initialize all interaction on the graph pane. This method is called by the setGraphPane() method of the superclass. This initialization cannot be done in the constructor because the controller does not yet have a reference to its pane at that time.

Specified by:
initializeInteraction in class AbstractGraphController

getEntityController

public BasicNodeController getEntityController()
Return the entity controller.


getPortController

public BasicNodeController getPortController()
Return the port controller.


getLinkController

public BasicEdgeController getLinkController()
Return the link controller.


getEdgeController

public EdgeController getEdgeController(Object edge)
Given an edge, return the controller associated with that edge.

Specified by:
getEdgeController in interface GraphController
Specified by:
getEdgeController in class AbstractGraphController

getNodeController

public NodeController getNodeController(Object node)
Given an node, return the controller associated with that node.

Specified by:
getNodeController in interface GraphController
Specified by:
getNodeController in class AbstractGraphController


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.