public abstract class IterableLayout extends java.lang.Object implements LayoutEmitter
Modifier and Type | Field and Description |
---|---|
protected EmittedLayout |
currentLayout |
protected EmittedLayout |
returnableLayout |
Constructor and Description |
---|
IterableLayout() |
Modifier and Type | Method and Description |
---|---|
void |
advance()
Copies the current layout into the retunrable layout,
then moves the visualization one step forward
(by calling calculate).
|
protected abstract void |
calculate()
Transforms currentLayout according to current layout algorithm.
|
EmittedLayout |
emit()
Creates some sort of layout that has all the same vertex and edge
locations.
|
protected java.awt.Dimension |
getScreenSize() |
protected VisEdge |
getVisEdge(Edge e) |
protected VisVertex |
getVisVertex(Vertex v) |
void |
initializeLocationsFromLayout(EmittedLayout inputLayout)
Starts up this layout based on a previous layout.
|
abstract boolean |
isFinite()
Says whether this algorthms' iterations will ever end.
|
abstract boolean |
iterationsAreDone()
Gives the outlining algorithm a sense of how long to run.
|
protected EmittedLayout currentLayout
protected EmittedLayout returnableLayout
public void advance()
public abstract boolean iterationsAreDone()
public abstract boolean isFinite()
protected abstract void calculate()
public EmittedLayout emit()
emit
in interface LayoutEmitter
public void initializeLocationsFromLayout(EmittedLayout inputLayout)
sla
- protected java.awt.Dimension getScreenSize()