|
Cytoscape 2.5.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.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 cytoscape.task.ui.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(cytoscape.task.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(cytoscape.task.TaskMonitor monitor)
setTaskMonitor
in interface cytoscape.task.Task
public void run()
run
in interface cytoscape.task.Task
run
in interface Runnable
public void halt()
halt
in interface cytoscape.task.Haltable
halt
in interface cytoscape.task.Task
public String getTitle()
getTitle
in interface cytoscape.task.Task
public static cytoscape.task.ui.JTaskConfig getDefaultTaskConfig()
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |