public class WrappedIterableLayout extends IterableLayout
Modifier and Type | Field and Description |
---|---|
protected int |
frames |
protected IterableLayout |
next |
protected IterableLayout |
start |
protected int |
thisFrame |
currentLayout, returnableLayout
Constructor and Description |
---|
WrappedIterableLayout(IterableLayout start,
IterableLayout next) |
WrappedIterableLayout(IterableLayout start,
IterableLayout next,
int frames) |
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 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.
|
void |
initializeLocationsFromLayout(EmittedLayout inputLayout)
Starts up this layout based on a previous layout.
|
boolean |
isFinite()
Says whether this algorthms' iterations will ever end.
|
boolean |
iterationsAreDone()
Gives the outlining algorithm a sense of how long to run.
|
getScreenSize, getVisEdge, getVisVertex
protected IterableLayout next
protected IterableLayout start
protected final int frames
protected int thisFrame
public WrappedIterableLayout(IterableLayout start, IterableLayout next)
public WrappedIterableLayout(IterableLayout start, IterableLayout next, int frames)
public boolean iterationsAreDone()
IterableLayout
iterationsAreDone
in class IterableLayout
public boolean isFinite()
IterableLayout
isFinite
in class IterableLayout
public void advance()
IterableLayout
advance
in class IterableLayout
public EmittedLayout emit()
IterableLayout
emit
in interface LayoutEmitter
emit
in class IterableLayout
public void initializeLocationsFromLayout(EmittedLayout inputLayout)
IterableLayout
initializeLocationsFromLayout
in class IterableLayout
protected void calculate()
IterableLayout
calculate
in class IterableLayout