|
|||||||||
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(giny.model.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 |
void |
addFlagEventListener(FlagEventListener listener)
Adds a listener for FlagEvents to this CyNetwork |
int |
addNode(int cytoscape_node)
Add a node to this Network that already exists in Cytoscape |
CyNode |
addNode(giny.model.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 |
void |
beginActivity(String callerID)
Deprecated. |
void |
deleteEdgeAttribute(String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
void |
deleteNodeAttribute(String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
void |
endActivity(String callerID)
Deprecated. |
void |
flagAllEdges()
Deprecated. As of 2.3, replaced by selectAllEdges() |
void |
flagAllNodes()
Deprecated. As of 2.3, replaced by selectAllNodes() |
void |
forceClear(String callerID)
Deprecated. |
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. |
GraphObjAttributes |
getEdgeAttributes()
Deprecated. Use Cytoscape.getEdgeAttributes() instead. This
method will be removed in September, 2006. |
String[] |
getEdgeAttributesList()
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
Object |
getEdgeAttributeValue(giny.model.Edge edge,
String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
Object |
getEdgeAttributeValue(int edge,
String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
ExpressionData |
getExpressionData()
Deprecated. |
int[] |
getFlaggedEdgeIndicesArray()
Deprecated. As of 2.3, replaced by getSelectedEdges() |
Set |
getFlaggedEdges()
Deprecated. As of 2.3, replaced by getSelectedEdges() |
int[] |
getFlaggedNodeIndicesArray()
Deprecated. As of 2.3, replaced by getSelectedNodes() |
Set |
getFlaggedNodes()
Deprecated. As of 2.3, replaced by getSelectedNodes() |
FlagFilter |
getFlagger()
Deprecated. As of 2.3, replaced by getSelectFilter() |
giny.model.GraphPerspective |
getGraphPerspective()
Deprecated. |
String |
getIdentifier()
Can't Change |
GraphObjAttributes |
getNodeAttributes()
Deprecated. Use Cytoscape.getNodeAttributes() instead. This
method will be removed in September, 2006. |
String[] |
getNodeAttributesList()
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
String[] |
getNodeAttributesList(giny.model.Edge[] edges)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
String[] |
getNodeAttributesList(giny.model.Node[] nodes)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
Object |
getNodeAttributeValue(int node,
String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
Object |
getNodeAttributeValue(giny.model.Node node,
String attribute)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
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 |
isFlagged(giny.model.Edge edge)
Deprecated. As of 2.3, replaced by isSelected(Edge) |
boolean |
isFlagged(giny.model.Node node)
Deprecated. As of 2.3, replaced by isSelected(Node) |
boolean |
isSelected(giny.model.Edge edge)
Returns the selected state of the given edge. |
boolean |
isSelected(giny.model.Node node)
Returns the selected state of the given node. |
boolean |
isStateClear()
Deprecated. |
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. |
void |
removeFlagEventListener(FlagEventListener listener)
Deprecated. As of 2.3, replaced by removeSelectEventListener(SelectEventListener) |
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 |
boolean |
setEdgeAttributeValue(giny.model.Edge edge,
String attribute,
Object value)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
boolean |
setEdgeAttributeValue(int edge,
String attribute,
Object value)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
void |
setExpressionData(ExpressionData newData)
Deprecated. Sets the expression data object associated with this network. |
void |
setFlagged(giny.model.Edge edge,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedEdgeState(Collection,boolean) |
void |
setFlagged(giny.model.Node node,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedNodeState(Collection,boolean) |
void |
setFlaggedEdges(Collection edges,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedEdgeState(Collection,boolean) |
void |
setFlaggedEdges(int[] edges,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedEdgeState(Collection,boolean) |
void |
setFlaggedNodes(Collection nodes,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedNodeState(Collection,boolean) |
void |
setFlaggedNodes(int[] nodes,
boolean state)
Deprecated. As of 2.3, replaced by setSelectedNodeState(Collection,boolean) |
String |
setIdentifier(String new_id)
Can't Change |
void |
setNewGraphFrom(CyNetwork newNetwork,
boolean replaceAttributes)
Deprecated. |
boolean |
setNodeAttributeValue(int node,
String attribute,
Object value)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
boolean |
setNodeAttributeValue(giny.model.Node node,
String attribute,
Object value)
Deprecated. Use CyAttributes directly. This method will be
removed in September, 2006. |
void |
setSelectedEdgeState(Collection edges,
boolean selected_state)
Sets the selected state of a collection of edges. |
void |
setSelectedNodeState(Collection nodes,
boolean selected_state)
Sets the selected state of a collection of nodes. |
void |
setTitle(String new_id)
Can Change |
void |
unFlagAllEdges()
Deprecated. As of 2.3, replaced by unselectAllEdges() |
void |
unFlagAllNodes()
Deprecated. As of 2.3, replaced by unselectAllNodes() |
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 |
Methods inherited from interface giny.model.GraphPerspective |
---|
addGraphPerspectiveChangeListener, clone, containsEdge, containsEdge, containsNode, containsNode, createGraphPerspective, createGraphPerspective, createGraphPerspective, createGraphPerspective, edgeExists, edgeExists, edgeMetaChildrenList, edgeMetaChildrenList, edgeMetaParentsList, edgesIterator, edgesList, edgesList, edgesList, getAdjacentEdgeIndicesArray, getAdjacentEdgesList, getConnectingEdgeIndicesArray, getConnectingEdges, getConnectingNodeIndicesArray, getDegree, getDegree, getEdge, getEdgeCount, getEdgeCount, getEdgeCount, getEdgeIndex, getEdgeIndicesArray, getEdgeIndicesArray, getEdgeIndicesArray, getEdgeMetaChildIndicesArray, getEdgeMetaParentIndicesArray, getEdgeSourceIndex, getEdgeTargetIndex, getInDegree, getInDegree, getInDegree, getInDegree, getIndex, getIndex, getNode, getNodeCount, getNodeIndex, getNodeIndicesArray, getNodeMetaChildIndicesArray, getNodeMetaParentIndicesArray, getOutDegree, getOutDegree, getOutDegree, getOutDegree, getRootGraph, getRootGraphEdgeIndex, getRootGraphNodeIndex, hideEdge, hideEdge, hideEdges, hideEdges, hideNode, hideNode, hideNodes, hideNodes, isEdgeDirected, isEdgeMetaChild, isEdgeMetaParent, isMetaChild, isMetaChild, isMetaParent, isMetaParent, isNeighbor, isNeighbor, isNodeMetaChild, isNodeMetaParent, join, metaParentsList, metaParentsList, neighborsArray, neighborsList, nodeMetaChildrenList, nodeMetaChildrenList, nodeMetaParentsList, nodesIterator, nodesList, removeGraphPerspectiveChangeListener, restoreEdge, restoreEdge, restoreEdges, restoreEdges, restoreNode, restoreNode, restoreNodes, restoreNodes, restoreNodes, restoreNodes |
Method Detail |
---|
String getTitle()
void setTitle(String new_id)
String getIdentifier()
String setIdentifier(String new_id)
void appendNetwork(CyNetwork network)
void setNewGraphFrom(CyNetwork newNetwork, boolean replaceAttributes)
appendNetwork(cytoscape.CyNetwork)
void beginActivity(String callerID)
void endActivity(String callerID)
boolean isStateClear()
void forceClear(String callerID)
void addCyNetworkListener(CyNetworkListener listener)
boolean removeCyNetworkListener(CyNetworkListener listener)
Set getCyNetworkListeners()
ExpressionData getExpressionData()
void setExpressionData(ExpressionData newData)
GraphObjAttributes getNodeAttributes()
Cytoscape.getNodeAttributes()
instead. This
method will be removed in September, 2006.
GraphObjAttributes getEdgeAttributes()
Cytoscape.getEdgeAttributes()
instead. This
method will be removed in September, 2006.
giny.model.GraphPerspective getGraphPerspective()
void flagAllNodes()
selectAllNodes()
void flagAllEdges()
selectAllEdges()
void unFlagAllNodes()
unselectAllNodes()
void unFlagAllEdges()
unselectAllEdges()
void setFlagged(giny.model.Node node, boolean state)
setSelectedNodeState(Collection,boolean)
void setFlaggedNodes(Collection nodes, boolean state)
setSelectedNodeState(Collection,boolean)
void setFlaggedNodes(int[] nodes, boolean state)
setSelectedNodeState(Collection,boolean)
void setFlagged(giny.model.Edge edge, boolean state)
setSelectedEdgeState(Collection,boolean)
void setFlaggedEdges(Collection edges, boolean state)
setSelectedEdgeState(Collection,boolean)
void setFlaggedEdges(int[] edges, boolean state)
setSelectedEdgeState(Collection,boolean)
boolean isFlagged(giny.model.Node node)
isSelected(Node)
node
-
boolean isFlagged(giny.model.Edge edge)
isSelected(Edge)
edge
-
Set getFlaggedNodes()
getSelectedNodes()
Set getFlaggedEdges()
getSelectedEdges()
int[] getFlaggedNodeIndicesArray()
getSelectedNodes()
int[] getFlaggedEdgeIndicesArray()
getSelectedEdges()
void addFlagEventListener(FlagEventListener listener)
listener
- void removeFlagEventListener(FlagEventListener listener)
removeSelectEventListener(SelectEventListener)
listener
- FlagFilter getFlagger()
getSelectFilter()
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 setSelectedEdgeState(Collection edges, boolean selected_state)
edges
- a Collection of Edgesselected_state
- the desired selection state for the edgesboolean isSelected(giny.model.Node node)
node
- the node
boolean isSelected(giny.model.Edge edge)
edge
- the edge
Set getSelectedNodes()
Set getSelectedEdges()
void addSelectEventListener(SelectEventListener listener)
listener
- void removeSelectEventListener(SelectEventListener listener)
listener
- SelectFilter getSelectFilter()
Object getNodeAttributeValue(giny.model.Node node, String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
node
- the given CyNodeattribute
- the name of the requested attribute
Object getNodeAttributeValue(int node, String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
Object getEdgeAttributeValue(giny.model.Edge edge, String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
Object getEdgeAttributeValue(int edge, String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
String[] getNodeAttributesList()
CyAttributes
directly. This method will be
removed in September, 2006.
String[] getNodeAttributesList(giny.model.Node[] nodes)
CyAttributes
directly. This method will be
removed in September, 2006.
String[] getEdgeAttributesList()
CyAttributes
directly. This method will be
removed in September, 2006.
String[] getNodeAttributesList(giny.model.Edge[] edges)
CyAttributes
directly. This method will be
removed in September, 2006.
boolean setNodeAttributeValue(giny.model.Node node, String attribute, Object value)
CyAttributes
directly. This method will be
removed in September, 2006.
node
- the given CyNodeattribute
- the name of the requested attributevalue
- the value to be set
boolean setNodeAttributeValue(int node, String attribute, Object value)
CyAttributes
directly. This method will be
removed in September, 2006.
boolean setEdgeAttributeValue(giny.model.Edge edge, String attribute, Object value)
CyAttributes
directly. This method will be
removed in September, 2006.
boolean setEdgeAttributeValue(int edge, String attribute, Object value)
CyAttributes
directly. This method will be
removed in September, 2006.
void deleteNodeAttribute(String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
void deleteEdgeAttribute(String attribute)
CyAttributes
directly. This method will be
removed in September, 2006.
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(giny.model.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(giny.model.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |