public interface LayoutController
LayoutModel
. It always controls the current workspace model.
This controller is a singleton and can therefore be found in Lookup:
LayoutController lc = Lookup.getDefault().lookup(LayoutController.class);
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.
|
LayoutModel getModel()
Workspace
.void setLayout(Layout layout)
layout
- the layout that is to be selectedvoid executeLayout()
void executeLayout(int numIterations)
numIterations
iterations.numIterations
- the number of iterations of the algorithmboolean canExecute()
true
if the layout is executable.void stopLayout()
boolean canStop()
true
if the layout can be stopped.Copyright © 2007–2015 Gephi Consortium. All rights reserved.