public abstract class AbstractParallelPartitionLayoutTask extends AbstractPartitionLayoutTask
Module: layout-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>layout-api</artifactId> </dependency>
current_size, current_start, edgeWeighter, incr, partitionList, taskMonitor, total_nodes
LAYOUT_ALGORITHM, layoutAttribute, networkView, nodesToLayOut, recenter, undo
cancelled
Constructor and Description |
---|
AbstractParallelPartitionLayoutTask(String displayName,
boolean singlePartition,
CyNetworkView networkView,
Set<View<CyNode>> nodesToLayOut,
String layoutAttribute,
UndoSupport undo)
Creates a new AbstractPartitionLayoutTask object.
|
Modifier and Type | Method and Description |
---|---|
void |
doLayout(TaskMonitor taskMonitor)
AbstractGraphPartitionLayout implements the doLayout method
of AbstractBasicLayout in which it calls the layoutParition
method on each LayoutPartition object created for the network.
|
layoutPartition, setTaskStatus
run
cancel, insertTasksAfterCurrentTask, insertTasksAfterCurrentTask, setTaskIterator
public AbstractParallelPartitionLayoutTask(String displayName, boolean singlePartition, CyNetworkView networkView, Set<View<CyNode>> nodesToLayOut, String layoutAttribute, UndoSupport undo)
name
- The name of the layout algorithm.singlePartition
- Whether this layout algorithm should execute on a
single partition instead of multiple partitions.networkView
- the CyNetworkView being partitioned.nodesToLayOut
- the set of nodes to layout.layoutAttribute
- the name of the attribute to use for this layout.
Allowed to be empty or null.public void doLayout(TaskMonitor taskMonitor)
doLayout
in class AbstractPartitionLayoutTask
taskMonitor
- the TaskMonitor provided by the run() method
of the Task.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.