|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.layout.LayoutTask
public class LayoutTask
A wrapper for applying a layout in a task. Use it something like this:
TaskManager.executeTask( new LayoutTask(layout, view), LayoutTask.getDefaultTaskConfig() );
Constructor Summary | |
---|---|
LayoutTask(CyLayoutAlgorithm layout,
CyNetworkView view)
Creates the task. |
Method Summary | |
---|---|
static JTaskConfig |
getDefaultTaskConfig()
This method returns a default TaskConfig object. |
String |
getTitle()
Get the "nice" title of this algorithm |
void |
halt()
Halt the algorithm if the CyLayoutAlgorithm supports it. |
void |
run()
Run the algorithm. |
void |
setTaskMonitor(TaskMonitor monitor)
Sets the task monitor to be used for the layout. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutTask(CyLayoutAlgorithm layout, CyNetworkView view)
layout
- The CyLayoutAlgorithm to apply.view
- The view the algorithm should be applied to.Method Detail |
---|
public void setTaskMonitor(TaskMonitor monitor)
setTaskMonitor
in interface Task
monitor
- TaskMonitor Object.public void run()
run
in interface Task
run
in interface Runnable
public void halt()
halt
in interface Haltable
halt
in interface Task
public String getTitle()
getTitle
in interface Task
public static JTaskConfig getDefaultTaskConfig()
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |