public abstract class GraphLayout
extends Object
Modifier and Type | Field and Description |
---|---|
protected Graph |
graph |
protected boolean |
verbose |
Constructor and Description |
---|
GraphLayout(Graph g)
Create an instance of a layout manager.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
copyToGraph()
Use the results of the layout procedure and update the graph to reflect the new positions.
|
boolean |
isVerbose()
Whether to display debugging and tracing output on the console.
|
abstract boolean |
performLayout()
Execute whatever layout procedure is implemented by the class.
|
void |
setVerbose(boolean verbose) |
protected Graph graph
protected boolean verbose
public GraphLayout(Graph g)
g
- the graph to be laid out.public boolean isVerbose()
public void setVerbose(boolean verbose)
public abstract boolean performLayout()
copyToGraph()
public abstract void copyToGraph()