public class LayoutControllerImpl extends Object implements LayoutController
| Constructor and Description |
|---|
LayoutControllerImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExecute()
Determine if the current Layout can be executed.
|
boolean |
canStop()
Determine if the current Layout execution can be stopped.
|
void |
executeLayout()
Executes the current Layout.
|
void |
executeLayout(int numIterations)
Executes the current layout for
numIterations iterations. |
LayoutModel |
getModel()
Returns the model of the currently selected
Workspace. |
void |
setLayout(Layout layout)
Sets the Layout to execute.
|
void |
stopLayout()
Stop the Layout's execution.
|
public LayoutModel getModel()
LayoutControllerWorkspace.getModel in interface LayoutControllerpublic void setLayout(Layout layout)
LayoutControllersetLayout in interface LayoutControllerlayout - the layout that is to be selectedpublic void executeLayout()
LayoutControllerexecuteLayout in interface LayoutControllerpublic void executeLayout(int numIterations)
LayoutControllernumIterations iterations.executeLayout in interface LayoutControllernumIterations - the number of iterations of the algorithmpublic boolean canExecute()
LayoutControllercanExecute in interface LayoutControllertrue if the layout is executable.public boolean canStop()
LayoutControllercanStop in interface LayoutControllertrue if the layout can be stopped.public void stopLayout()
LayoutControllerstopLayout in interface LayoutControllerCopyright © 2007–2017. All rights reserved.