uk.ac.kcl.cch.jb.pliny.containmentView.layout
Class DirectedGraphLayoutVisitor
java.lang.Object
uk.ac.kcl.cch.jb.pliny.containmentView.layout.DirectedGraphLayoutVisitor
- public class DirectedGraphLayoutVisitor
- extends Object
Visitor with support for populating nodes and edges of DirectedGraph
from model objects. This code was borrowed for use within Pliny
with only minor conceptual changes from
com.realpersist.gef.schemaeditor
with thanks to
the original authors.
- Author:
- Phil Zoio, a few changes by John Bradley
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectedGraphLayoutVisitor
public DirectedGraphLayoutVisitor()
layoutDiagram
public void layoutDiagram(ContainmentSetPart diagram)
- Public method for reading graph nodes
addNodes
protected void addNodes(ContainmentSetPart diagram)
addNodes
protected void addNodes(ContainmentItemPart itemPart)
- Adds nodes to the graph object for use by the GraphLayoutManager
addEdges
protected void addEdges(ContainmentSetPart diagram)
addEdges
protected void addEdges(ContainmentItemPart tablePart)
addEdges
protected void addEdges(ContainmentLinkPart linkPart)
applyResults
protected void applyResults(ContainmentSetPart diagram)
applyResults
public void applyResults(ContainmentItemPart tablePart)
applyResults
protected void applyResults(ContainmentLinkPart relationshipPart)