public interface GraphLayoutManager extends Serializable
| 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 isInitialized()
void layout()
void addVertex(VisualVertex vvertex)
vvertex - The newly added VisualVertex object.void removeVertex(VisualVertex vvertex)
vvertex - The VisualVertex object to be removed.void addEdge(VisualEdge vedge)
vedge - The newly added VisualEdge object.void removeEdge(VisualEdge vedge)
vedge - The VisualEdge object to be removedvoid routeEdge(Graphics2D g2d, VisualEdge vEdge)
Implementations of this method should set the segments of the VisualEdge's GeneralPath by calling the methods moveTo(), lineTo(), curveTo(), and quadTo().
g2d - The Graphics2D object used for paintingvedge - The VisualEdge object to be drawnvoid drawLayout()
Copyright © 2019 JULIE Lab, Germany. All rights reserved.