Gephi Toolkit Javadoc

org.gephi.layout
Class LayoutControllerImpl

java.lang.Object
  extended by org.gephi.layout.LayoutControllerImpl
All Implemented Interfaces:
LayoutController

public class LayoutControllerImpl
extends java.lang.Object
implements LayoutController

Author:
Mathieu Bastian

Constructor Summary
LayoutControllerImpl()
           
 
Method Summary
 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 injectGraph()
           
 void setLayout(Layout layout)
          Sets the Layout to execute.
 void stopLayout()
          Stop the Layout's execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutControllerImpl

public LayoutControllerImpl()
Method Detail

getModel

public LayoutModel getModel()
Description copied from interface: LayoutController
Returns the model of the currently selected Workspace.

Specified by:
getModel in interface LayoutController

setLayout

public void setLayout(Layout layout)
Description copied from interface: LayoutController
Sets the Layout to execute.

Specified by:
setLayout in interface LayoutController
Parameters:
layout - the layout that is to be selected

executeLayout

public void executeLayout()
Description copied from interface: LayoutController
Executes the current Layout.

Specified by:
executeLayout in interface LayoutController

executeLayout

public void executeLayout(int numIterations)
Description copied from interface: LayoutController
Executes the current layout for numIterations iterations.

Specified by:
executeLayout in interface LayoutController
Parameters:
numIterations - the number of iterations of the algorithm

injectGraph

public void injectGraph()

canExecute

public boolean canExecute()
Description copied from interface: LayoutController
Determine if the current Layout can be executed.

Specified by:
canExecute in interface LayoutController
Returns:
true if the layout is executable.

canStop

public boolean canStop()
Description copied from interface: LayoutController
Determine if the current Layout execution can be stopped. If the current Layout is not running, it generally cannot be stopped.

Specified by:
canStop in interface LayoutController
Returns:
true if the layout can be stopped.

stopLayout

public void stopLayout()
Description copied from interface: LayoutController
Stop the Layout's execution.

Specified by:
stopLayout in interface LayoutController

Gephi Toolkit Javadoc