|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CyLayoutAlgorithm
A task factory specifically for layout algorithms.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final Set<View<CyNode>> ALL_NODE_VIEWS
Method Detail |
---|
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()
|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |