|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsamples.preview_new_graphdraw.iter.IterableLayout
samples.preview_new_graphdraw.iterablelayouts.WrappedIterableLayout
public class WrappedIterableLayout
This class runs one iterable layout until it is finished, then starts on another (for either K iterations or until finished). This allows people like Joshua to do "KKLayout until done, plus just a few iterations of SpringLayout to clean up."
Field Summary | |
---|---|
protected int |
frames
|
protected IterableLayout |
next
|
protected IterableLayout |
start
|
protected int |
thisFrame
|
Fields inherited from class samples.preview_new_graphdraw.iter.IterableLayout |
---|
currentLayout, returnableLayout |
Constructor Summary | |
---|---|
WrappedIterableLayout(IterableLayout start,
IterableLayout next)
|
|
WrappedIterableLayout(IterableLayout start,
IterableLayout next,
int frames)
|
Method Summary | |
---|---|
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. |
Methods inherited from class samples.preview_new_graphdraw.iter.IterableLayout |
---|
getScreenSize, getVisEdge, getVisVertex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IterableLayout next
protected IterableLayout start
protected final int frames
protected int thisFrame
Constructor Detail |
---|
public WrappedIterableLayout(IterableLayout start, IterableLayout next)
public WrappedIterableLayout(IterableLayout start, IterableLayout next, int frames)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |