|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CyNetwork
CyNetwork is the primary class for algorithm writing. All algorithms
should take a CyNetwork as input, and do their best to only use the API of
CyNetwork. Plugins that want to affect the display of a graph can look
into using CyNetworkView as well.
A CyNetwork can create Nodes or Edges. Any Nodes or Edges that wish to
be added to a CyNetwork firt need to be created in Cytoscape.
The methods that are defined by CyNetwork mostly deal with data integration
and flagging of nodes/edges. All methods that deal with graph traversal
are part of the inherited API of the GraphPerspective class. Links to
which can be found at the bottom of the methods list.
In general, all methods are supported for working with Nodes/Edges as
objects, and as indices.
Method Summary | |
---|---|
void |
addCyNetworkListener(CyNetworkListener listener)
Registers the argument as a listener to this object. |
CyEdge |
addEdge(Edge cytoscape_edge)
Add a edge to this Network that already exists in Cytoscape |
int |
addEdge(int cytoscape_edge)
Add a edge to this Network that already exists in Cytoscape |
int |
addNode(int cytoscape_node)
Add a node to this Network that already exists in Cytoscape |
CyNode |
addNode(Node cytoscape_node)
Add a node to this Network that already exists in Cytoscape |
void |
addSelectEventListener(SelectEventListener listener)
Adds a listener for SelectEvents to this CyNetwork |
void |
appendNetwork(CyNetwork network)
Appends all of the nodes and edges in the given Network to this Network |
Object |
getClientData(String data_name)
Deprecated. Use CyAttributes directly. This method will be
removed in May, 2007. |
Collection |
getClientDataNames()
Deprecated. Use CyAttributes directly. This method will be
removed in May, 2007. |
Set |
getCyNetworkListeners()
Returns the set of listeners registered with this object. |
String |
getIdentifier()
Can't Change |
Set |
getSelectedEdges()
Returns the set of selected edges in this CyNetwork |
Set |
getSelectedNodes()
Returns the set of selected nodes in this CyNetwork |
SelectFilter |
getSelectFilter()
|
String |
getTitle()
Can Change |
boolean |
isSelected(Edge edge)
Returns the selected state of the given edge. |
boolean |
isSelected(Node node)
Returns the selected state of the given node. |
void |
putClientData(String data_name,
Object data)
Deprecated. Use CyAttributes directly. This method will be
removed in May, 2007. |
boolean |
removeCyNetworkListener(CyNetworkListener listener)
Removes the argument from the set of listeners for this object. |
boolean |
removeEdge(int edge_index,
boolean set_remove)
This will remove this edge from the Network. |
boolean |
removeNode(int node_index,
boolean set_remove)
This will remove this node from the Network. |
void |
removeSelectEventListener(SelectEventListener listener)
Removes a listener for SelectEvents from this CyNetwork |
void |
selectAllEdges()
Sets the selected state of all edges in this CyNetwork to true |
void |
selectAllNodes()
Sets the selected state of all nodes in this CyNetwork to true |
String |
setIdentifier(String new_id)
Can't Change |
void |
setSelectedEdgeState(Collection edges,
boolean selected_state)
Sets the selected state of a collection of edges. |
void |
setSelectedEdgeState(Edge edge,
boolean selected_state)
Sets the selected state of a single edge. |
void |
setSelectedNodeState(Collection nodes,
boolean selected_state)
Sets the selected state of a collection of nodes. |
void |
setSelectedNodeState(Node node,
boolean selected_state)
Sets the selected state of a single node. |
void |
setTitle(String new_id)
Can Change |
void |
unselectAllEdges()
Sets the selected state of all edges in this CyNetwork to false |
void |
unselectAllNodes()
Sets the selected state of all nodes in this CyNetwork to false |
Method Detail |
---|
String getTitle()
void setTitle(String new_id)
String getIdentifier()
String setIdentifier(String new_id)
void appendNetwork(CyNetwork network)
void addCyNetworkListener(CyNetworkListener listener)
boolean removeCyNetworkListener(CyNetworkListener listener)
Set getCyNetworkListeners()
void selectAllNodes()
void selectAllEdges()
void unselectAllNodes()
void unselectAllEdges()
void setSelectedNodeState(Collection nodes, boolean selected_state)
nodes
- a Collection of Nodesselected_state
- the desired selection state for the nodesvoid setSelectedNodeState(Node node, boolean selected_state)
node
- a single Nodeselected_state
- the desired selection state for the nodesvoid setSelectedEdgeState(Collection edges, boolean selected_state)
edges
- a Collection of Edgesselected_state
- the desired selection state for the edgesvoid setSelectedEdgeState(Edge edge, boolean selected_state)
edge
- a single Edgeselected_state
- the desired selection state for the edgesboolean isSelected(Node node)
node
- the node
boolean isSelected(Edge edge)
edge
- the edge
Set getSelectedNodes()
Set getSelectedEdges()
void addSelectEventListener(SelectEventListener listener)
listener
- void removeSelectEventListener(SelectEventListener listener)
listener
- SelectFilter getSelectFilter()
void putClientData(String data_name, Object data)
CyAttributes
directly. This method will be
removed in May, 2007.
Collection getClientDataNames()
CyAttributes
directly. This method will be
removed in May, 2007.
Object getClientData(String data_name)
CyAttributes
directly. This method will be
removed in May, 2007.
int addNode(int cytoscape_node)
CyNode addNode(Node cytoscape_node)
boolean removeNode(int node_index, boolean set_remove)
set_remove
- true removes this node from all of Cytoscape, false lets it be
used by other CyNetworks
int addEdge(int cytoscape_edge)
CyEdge addEdge(Edge cytoscape_edge)
boolean removeEdge(int edge_index, boolean set_remove)
set_remove
- true removes this edge from all of Cytoscape, false lets it be
used by other CyNetworks
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |