public class OrthogonalLineLayout extends AbstractGridLayout
| Constructor and Description |
|---|
OrthogonalLineLayout(GraphEditor gedit)
Creates a OrthogonalLineLayout object used to layout the VisualGraph object
specified by vgraph.
|
OrthogonalLineLayout(GraphScrollPane gpane)
Creates a OrthogonalLineLayout object used to layout the VisualGraph object
specified by vgraph.
|
OrthogonalLineLayout(VisualGraph vgraph)
Creates a OrthogonalLineLayout object used to layout the VisualGraph object
specified by vgraph.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(VisualEdge vedge)
Automatically called by the VisualGraph's edgeAdded() method
whenever an edge has been added to the graph and consequently
when a VisualEdge has been added to the VisualGraph object.
|
void |
addVertex(VisualVertex vvertex)
Automatically called by the VisualGraph's vertexAdded() method
whenever a vertex has been added to the graph and consequently
when the VisualVertex has been added to the VisualGraph object.
|
protected void |
initGraphLayout()
Initializes the internal List objects
|
void |
layout()
Lays out the graph.
|
void |
removeEdge(VisualEdge vedge)
Automatically called by the VisualGraph's edgeRemoved() method
whenever an edge is about to be removed from the graph and consequently
when a VisualEdge is about to be removed from the VisualGraph object.
|
void |
removeVertex(VisualVertex vvertex)
Automatically called by the VisualGraph's vertexRemoved() method
whenever a vertex is about to be removed from the graph and
consequently when a VisualVertex is about to be removed
from the VisualGraph object.
|
void |
routeEdge(Graphics2D g2d,
VisualEdge vedge)
Automatically called when a VisualEdge object needs to be drawn.
|
protected void |
routeEdge(VisualEdge vedge) |
protected void |
routeEdges()
Routes all the edges
|
drawLayout, generalPosition, getDrawgrid, getGrid, getStartAt, getXGridDistance, getYGridDistance, isInitialized, medianPlacement, run, setDrawGrid, setGraphLayoutListener, setStartAt, setXGridDistance, setYGridDistancepublic OrthogonalLineLayout(VisualGraph vgraph)
vgraph - The VisualGraph object to be laid out.public OrthogonalLineLayout(GraphScrollPane gpane)
gpane - A GraphScrollPane object encapsulating the VisualGraph
object to be laid out.public OrthogonalLineLayout(GraphEditor gedit)
gedit - A GraphEditor object encapsulating a GraphScrollPane object
which in turn encapsulates the VisualGraph object to be laid out.protected void initGraphLayout()
public void addVertex(VisualVertex vvertex)
vvertex - The newly added VisualVertex object.public void removeVertex(VisualVertex vvertex)
vvertex - The VisualVertex object about to be removed.public void addEdge(VisualEdge vedge)
vedge - The newly added VisualEdge objectpublic void removeEdge(VisualEdge vedge)
vedge - The VisualEdge object about to be removed.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().
g2d - The Graphics2D object used for paintingprotected void routeEdges()
protected void routeEdge(VisualEdge vedge)
public void layout()
layout in interface GraphLayoutManagerlayout in class AbstractGridLayoutAbstractGridLayout.drawLayout()Copyright © 2019 JULIE Lab, Germany. All rights reserved.