public class LocalGraphDraw
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected GraphLayoutPanel |
jgp |
protected IterableLayout |
layout |
protected LayoutIterator |
li |
protected TransformerPipeline |
pipeline |
protected boolean |
staticAnimation |
Constructor and Description |
---|
LocalGraphDraw(Graph g,
StaticLayout startup,
IterableLayout layout,
VertexRenderer vr,
EdgeRenderer er,
java.awt.Dimension d,
boolean prerelax)
A verbose constructor creates a LocalGraphDraw object, and a panel to
show.
|
LocalGraphDraw(Graph g,
StaticLayout startup,
VertexRenderer vr,
EdgeRenderer er,
java.awt.Dimension d)
A LocalGraphDraw that won't be animated.
|
Modifier and Type | Method and Description |
---|---|
void |
addToPipeline(LayoutTransformer lt) |
LayoutIterator |
getIterator() |
IterableLayout |
getLayoutSource()
Returns the iterable layout at the core.
|
GraphLayoutPanel |
getPanel() |
void |
start() |
void |
stop() |
void |
updateGraphTo(Graph g) |
protected GraphLayoutPanel jgp
protected IterableLayout layout
protected LayoutIterator li
protected TransformerPipeline pipeline
protected boolean staticAnimation
public LocalGraphDraw(Graph g, StaticLayout startup, IterableLayout layout, VertexRenderer vr, EdgeRenderer er, java.awt.Dimension d, boolean prerelax)
g
- A graph to visualizationstartup
- The startup (static) layout that places the noteslayout
- The iterable layout that moves the nodesvr
- The vertex renderer that draws the nodeser
- The edge renderer that draws edgesd
- The size to which the panel should be drawnprerelax
- Should the graph be iterated for a few milliseconds before
the program starts? By default, this will freeze for half a
second. Turn off to start with a messier view but a faster
startup.public LocalGraphDraw(Graph g, StaticLayout startup, VertexRenderer vr, EdgeRenderer er, java.awt.Dimension d)
g
- A graph to visualizationstartup
- The startup (static) layout that places the notesvr
- The vertex renderer that draws the nodeser
- The edge renderer that draws edgesd
- The size to which the panel should be drawnprerelax
- Should the graph be iterated for a few milliseconds before
the program starts? By default, this will freeze for half a
second. Turn off to start with a messier view but a faster
startup.public void addToPipeline(LayoutTransformer lt)
public GraphLayoutPanel getPanel()
public void start()
public void stop()
public LayoutIterator getIterator()
public IterableLayout getLayoutSource()
public void updateGraphTo(Graph g)
g
-