public class LayeredTreeLayout extends AbstractGridLayout implements Visitor
| Constructor and Description |
|---|
LayeredTreeLayout(VisualGraph vGraph) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(VisualEdge vEdge)
Automatically called when a VisualEdge object has been added
to the VisualGraph object being laid out.
|
void |
addVertex(VisualVertex vVertex)
Automatically called when a VisualVertex object has been added
to the VisualGraph object being laid out.
|
void |
layout()
Execute the layered-tree layout algorithm
|
void |
removeEdge(VisualEdge vEdge)
Automatically called when a VisualEdge object is about to be removed
from the VisualGraph object being laid out.
|
void |
removeVertex(VisualVertex vVertex)
Automatically called when a VisualVertex object is about to be removed
from the VisualGraph object being laid out.
|
void |
routeEdge(Graphics2D g2d,
VisualEdge vEdge)
Automatically called when a VisualEdge object needs to be drawn.
|
boolean |
visit(Vertex vertexToVisit)
Implementation of the visit() method of the Visitor interface.
|
drawLayout, generalPosition, getDrawgrid, getGrid, getStartAt, getXGridDistance, getYGridDistance, isInitialized, medianPlacement, run, setDrawGrid, setGraphLayoutListener, setStartAt, setXGridDistance, setYGridDistancepublic LayeredTreeLayout(VisualGraph vGraph)
public void layout()
layout in interface GraphLayoutManagerlayout in class AbstractGridLayoutpublic boolean visit(Vertex vertexToVisit)
public void routeEdge(Graphics2D g2d, VisualEdge vEdge)
GraphLayoutManagerImplementations of this method should set the segments of the VisualEdge's GeneralPath by calling the methods moveTo(), lineTo(), curveTo(), and quadTo().
routeEdge in interface GraphLayoutManagerg2d - The Graphics2D object used for paintingpublic void addVertex(VisualVertex vVertex)
GraphLayoutManageraddVertex in interface GraphLayoutManagervVertex - The newly added VisualVertex object.public void removeEdge(VisualEdge vEdge)
GraphLayoutManagerremoveEdge in interface GraphLayoutManagervEdge - The VisualEdge object to be removedpublic void removeVertex(VisualVertex vVertex)
GraphLayoutManagerremoveVertex in interface GraphLayoutManagervVertex - The VisualVertex object to be removed.public void addEdge(VisualEdge vEdge)
GraphLayoutManageraddEdge in interface GraphLayoutManagervEdge - The newly added VisualEdge object.Copyright © 2019 JULIE Lab, Germany. All rights reserved.