Package diva.graph
Class SimpleGraphController
- java.lang.Object
-
- diva.graph.AbstractGraphController
-
- diva.graph.SimpleGraphController
-
- All Implemented Interfaces:
GraphController
- Direct Known Subclasses:
BasicGraphController
public abstract class SimpleGraphController extends AbstractGraphController
A simple graph controller, which works well if all nodes have the same interaction, and all edges have the same interaction. It defers the node related methods to a node controller, the edge related methods to an edge controller. For more complex visualizations that use multiple kinds of nodes, use CompositeGraphController instead.- Version:
- $Id$
- Author:
- Steve Neuendorffer
- Pt.AcceptedRating:
- Red
-
-
Constructor Summary
Constructors Constructor Description SimpleGraphController()
Create a new basic controller with default node and edge controllers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeController
getEdgeController()
Return the edge controller.EdgeController
getEdgeController(java.lang.Object edge)
Given an edge, return the controller associated with that edge.NodeController
getNodeController()
Return the node controller.NodeController
getNodeController(java.lang.Object node)
Given an node, return the controller associated with that node.void
setEdgeController(EdgeController c)
Set the edge controller.void
setNodeController(NodeController c)
Set the node controller.-
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, initializeInteraction, removeEdge, removeGraphViewListener, removeNode, rerender, rerenderEdge, rerenderNode, setFigure, setGraphModel, setGraphPane, setSelectionModel
-
-
-
-
Method Detail
-
getEdgeController
public EdgeController getEdgeController()
Return the edge controller.
-
getNodeController
public NodeController getNodeController()
Return the node controller.
-
getEdgeController
public EdgeController getEdgeController(java.lang.Object edge)
Given an edge, return the controller associated with that edge.- Specified by:
getEdgeController
in interfaceGraphController
- Specified by:
getEdgeController
in classAbstractGraphController
-
getNodeController
public NodeController getNodeController(java.lang.Object node)
Given an node, return the controller associated with that node.- Specified by:
getNodeController
in interfaceGraphController
- Specified by:
getNodeController
in classAbstractGraphController
-
setEdgeController
public void setEdgeController(EdgeController c)
Set the edge controller.
-
setNodeController
public void setNodeController(NodeController c)
Set the node controller.
-
-