|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.linkmap.layout.GraphLayoutManager
info.aduna.linkmap.layout.IteratingLayoutManager
public abstract class IteratingLayoutManager
An IteratingLayoutManager is an abstract GraphLayoutManager that provides facilities for concrete GraphLayoutManagers that need to iterate a lot when calculating a layout. These facilities include:
| Field Summary | |
|---|---|
static int |
UNDEFINED_MAX_ITERATION
Used to indicate that there is no maximum number of iterations that are allowed to be performed. |
| Constructor Summary | |
|---|---|
IteratingLayoutManager()
Inherit comment. |
|
| Method Summary | |
|---|---|
void |
continueLayout()
Sets the _pauseLayout attribute to 'false' and notifies all objects waiting on this object. |
int |
getIteration()
|
int |
getMaxIteration()
|
void |
handlePauseLayout()
Utility method that takes care of all complexity related to pausing and continuing the layout algorithm. |
void |
increaseIteration()
|
boolean |
isMaxIterationReached()
Returns true when a maximum number of iterations has been set and the current iteration number is greater than or equal to this maximum. |
void |
pauseLayout()
Sets the _pauseLayout attribute to 'true', which should cause the IteratingLayoutManager to pause real soon. |
boolean |
pauseLayoutRequested()
Returns the state of the _pauseLayout attribute. |
void |
setIteration(int iteration)
|
void |
setMaxIteration(int maxIteration)
Adapt the maximum number of iterations this IteratingLayoutManager is allowed to perform within one doLayout invocation, and notify all IteratingLayoutListeners. |
void |
setPauseLayout(boolean pauseLayout)
|
void |
setStopLayout(boolean stopLayout)
|
void |
stopLayout()
Sets the _pauseLayout and _stopLayout attributes to 'false' and 'true' respectively, and notifies all objects waiting on this object. |
boolean |
stopLayoutRequested()
Returns the state of the _stopLayout attribute. |
| Methods inherited from class info.aduna.linkmap.layout.GraphLayoutManager |
|---|
createLayoutConverter, doLayout, getGraph, initialize, run, setGraph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNDEFINED_MAX_ITERATION
| Constructor Detail |
|---|
public IteratingLayoutManager()
| Method Detail |
|---|
public void setMaxIteration(int maxIteration)
public int getMaxIteration()
public void setIteration(int iteration)
public int getIteration()
public void increaseIteration()
public boolean isMaxIterationReached()
public void pauseLayout()
public void continueLayout()
public void stopLayout()
public void setStopLayout(boolean stopLayout)
public void setPauseLayout(boolean pauseLayout)
public boolean pauseLayoutRequested()
public boolean stopLayoutRequested()
public void handlePauseLayout()
This method does not send a "continuation event" when it gets out of a wait state and the _stopLayout attribute is set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||