public class RadialTreeLayout extends Object implements GraphLayoutManager, Visitor
| Constructor and Description |
|---|
RadialTreeLayout(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 |
drawLayout()
This method is called to actually paint or draw the layout of the graph.
|
boolean |
isInitialized()
Determines if the graph has been initially laid out.
|
void |
layout()
This method is called to layout the vertices in the graph, without
actually drawing the finished or intermediate layout.
|
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.
|
public RadialTreeLayout(VisualGraph vGraph)
public boolean isInitialized()
isInitialized in interface GraphLayoutManagerpublic void layout()
GraphLayoutManagerlayout in interface GraphLayoutManagerpublic boolean visit(Vertex vertexToVisit)
public 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.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 drawLayout()
GraphLayoutManagerdrawLayout in interface GraphLayoutManagerCopyright © 2019 JULIE Lab, Germany. All rights reserved.