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, getVisVertexprotected 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()
IterableLayoutiterationsAreDone in class IterableLayoutpublic boolean isFinite()
IterableLayoutisFinite in class IterableLayoutpublic void advance()
IterableLayoutadvance in class IterableLayoutpublic EmittedLayout emit()
IterableLayoutemit in interface LayoutEmitteremit in class IterableLayoutpublic void initializeLocationsFromLayout(EmittedLayout inputLayout)
IterableLayoutinitializeLocationsFromLayout in class IterableLayoutprotected void calculate()
IterableLayoutcalculate in class IterableLayout