Package org.cytoscape.task
Interface NodeViewTaskFactory
- All Known Subinterfaces:
CollapseGroupTaskFactory,ExpandGroupTaskFactory,SelectFirstNeighborsNodeViewTaskFactory,UnGroupNodesTaskFactory
- All Known Implementing Classes:
AbstractNodeViewTaskFactory
public interface NodeViewTaskFactory
A task factory that creates a task that operates on the specified View<CyNode> within
the specified CyNetworkView.
Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.
Module: core-task-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>core-task-api</artifactId>
</dependency>-
Method Summary
Modifier and TypeMethodDescriptioncreateTaskIterator(View<CyNode> nodeView, CyNetworkView networkView)Provisions this factory with the node view and its associated network view, both of which will be passed into any task that will be created by this factory.default booleanisOn(View<CyNode> nodeView, CyNetworkView networkView)If this task factory implements theTogglableinterface then this method determines if the button or check box is on or off.booleanisReady(View<CyNode> nodeView, CyNetworkView networkView)Returns true if the node view and network view are in a state that is ready to be processed by the generated tasks and false otherwise.
-
Method Details
-
createTaskIterator
Provisions this factory with the node view and its associated network view, both of which will be passed into any task that will be created by this factory.- Parameters:
nodeView- a non-null node viewnetworkView- the non-null network view associated with the node view- Returns:
- A TaskIterator object containing one or more
Taskobjects to execute.
-
isReady
Returns true if the node view and network view are in a state that is ready to be processed by the generated tasks and false otherwise.- Parameters:
nodeView- a non-null node viewnetworkView- the non-null network view associated with the node view- Returns:
- true if the node view and network view are in a state that is ready to be processed by the generated tasks and false otherwise.
-
isOn
If this task factory implements theTogglableinterface then this method determines if the button or check box is on or off.- Since:
- 3.9
-