public interface CyLayoutAlgorithm
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>
Modifier and Type | Field and Description |
---|---|
static Set<View<CyNode>> |
ALL_NODE_VIEWS
A convenience declaration for an empty set signifying that all node views
should be laid out when creating the task iterator.
|
Modifier and Type | Method and Description |
---|---|
Object |
createLayoutContext()
Returns a new layout context object.
|
TaskIterator |
createTaskIterator(CyNetworkView networkView,
Object layoutContext,
Set<View<CyNode>> nodesToLayOut,
String layoutAttribute)
Creates a task iterator containing the layout tasks.
|
Object |
getDefaultLayoutContext()
Returns the default instance of the layout context.
|
String |
getName()
Returns the computer-readable name of the layout.
|
Set<Class<?>> |
getSupportedEdgeAttributeTypes()
Returns the set of node attribute types potentially used by this layout algorithm.
|
Set<Class<?>> |
getSupportedNodeAttributeTypes()
Returns the set of node attribute types potentially used by this layout algorithm.
|
boolean |
getSupportsSelectedOnly()
Returns true if this algorithm supports being applied to only the currently selected nodes.
|
boolean |
isReady(CyNetworkView networkView,
Object layoutContext,
Set<View<CyNode>> nodesToLayOut,
String layoutAttribute)
Returns true if the task factory is ready to produce a task iterator.
|
String |
toString()
Returns the human-readable name of the layout.
|
TaskIterator createTaskIterator(CyNetworkView networkView, Object layoutContext, Set<View<CyNode>> nodesToLayOut, String layoutAttribute)
networkView
- The network view that the layout algorithm should be applied to.layoutContext
- The layout context for this layout algorithm.nodesToLayOut
- The set of node views to layout.layoutAttribute
- The possibly null name of the attribute to use for this layout.boolean isReady(CyNetworkView networkView, Object layoutContext, Set<View<CyNode>> nodesToLayOut, String layoutAttribute)
networkView
- The network view that the layout algorithm should be applied to.layoutContext
- The layout context for this layout algorithm.nodesToLayOut
- The set of node views to layout.layoutAttribute
- The possibly null name of the attribute to use for this layout.Object createLayoutContext()
Object getDefaultLayoutContext()
Set<Class<?>> getSupportedNodeAttributeTypes()
Set<Class<?>> getSupportedEdgeAttributeTypes()
boolean getSupportsSelectedOnly()
String getName()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.