|
Cytoscape 2.8.0 API | |||||||||
| 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 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 |
|---|
clone, equals, finalize, 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 Taskmonitor - TaskMonitor Object.public void run()
run in interface Taskrun in interface Runnablepublic void halt()
halt in interface Haltablehalt in interface Taskpublic String getTitle()
getTitle in interface Taskpublic static JTaskConfig getDefaultTaskConfig()
|
Cytoscape 2.8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||