Package diva.graph.basic
Class BasicGraphController
- java.lang.Object
-
- diva.graph.AbstractGraphController
-
- diva.graph.SimpleGraphController
-
- diva.graph.basic.BasicGraphController
-
- All Implemented Interfaces:
GraphController
- Direct Known Subclasses:
BubbleGraphController
,BusContentionApplet.BusContentionGraphController
,LocalZenoApplet.LocalZenoGraphController
public class BasicGraphController extends SimpleGraphController
A basic implementation of GraphController, which works with simple graphs that have edges connecting simple nodes. It sets up some simple interaction on its view's pane.- Version:
- $Id$
- Author:
- Michael Shilman
- Pt.AcceptedRating:
- Red
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
BasicGraphController.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
Constructors Constructor Description BasicGraphController()
Create a new basic controller with default node and edge controllers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initializeInteraction()
Initialize all interaction on the graph pane.-
Methods inherited from class diva.graph.SimpleGraphController
getEdgeController, getEdgeController, getNodeController, getNodeController, setEdgeController, setNodeController
-
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
-
-
-
-
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 classAbstractGraphController
-
-