|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdiva.graph.AbstractGraphController
diva.graph.SimpleGraphController
diva.graph.basic.BasicGraphController
public class BasicGraphController
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.
| Red |
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
private MouseFilter |
_controlFilter
The filter for control operations |
private EdgeCreator |
_edgeCreator
The interactor that interactively creates edges |
private int |
_globalCount
The global count for the default node/edge creation. |
private BasicGraphController.NodeCreator |
_nodeCreator
The interactor for creating new nodes |
private SelectionDragger |
_selectionDragger
The selection interactor for drag-selecting nodes |
| Constructor Summary | |
|---|---|
BasicGraphController()
Create a new basic controller with default node and edge controllers. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int _globalCount
private SelectionDragger _selectionDragger
private BasicGraphController.NodeCreator _nodeCreator
private EdgeCreator _edgeCreator
private MouseFilter _controlFilter
| Constructor Detail |
|---|
public BasicGraphController()
| Method Detail |
|---|
protected void initializeInteraction()
initializeInteraction in class AbstractGraphController
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||