Cytoscape 3.0.1 API

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.

Method Summary
 TaskIterator createTaskIterator(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.
 boolean isReady(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 Detail

createTaskIterator

TaskIterator createTaskIterator(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.

Parameters:
nodeView - a non-null node view
networkView - the non-null network view associated with the node view
Returns:
A TaskIterator object containing one or more Task objects to execute.

isReady

boolean isReady(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.

Parameters:
nodeView - a non-null node view
networkView - 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.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.