|
Cytoscape 2.6.0 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfing.model.FingExtensibleGraphPerspective
cytoscape.giny.FingCyNetwork
public class FingCyNetwork
FinhCyNetwork provides an implementation of the CyNetwork interface, as well as the GraphPerspective inteface, and also provides the functionality formally provided by GraphObjAttributes. The Network will notify listeners when nodes/edges are added/removed and when relavant data changes.
| Field Summary |
|---|
| Fields inherited from interface cytoscape.graph.fixed.FixedGraph |
|---|
DIRECTED_EDGE, UNDIRECTED_EDGE |
| Constructor Summary | |
|---|---|
FingCyNetwork(fing.model.FingExtensibleRootGraph root,
cytoscape.util.intr.IntIterator rootGraphNodeInx,
cytoscape.util.intr.IntIterator rootGraphEdgeInx)
rootGraphNodeInx need not contain all endpoint nodes corresponding to edges in rootGraphEdgeInx - this is calculated automatically by this constructor. |
|
| 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 |
addEdge(String attribute,
Object value)
Adds a edge to this Network, by looking it up via the given attribute and value |
void |
addGraphPerspectiveChangeListener(GraphPerspectiveChangeListener arg0)
|
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 |
int |
addNode(String attribute,
Object value)
Adds a node to this Network, by looking it up via the given attribute and value |
void |
addSelectEventListener(SelectEventListener listener)
Adds a listener for SelectEvents to this CyNetwork |
void |
appendNetwork(CyNetwork network)
Appends all of the nodes and edges in teh given Network to this Network |
Object |
clone()
|
boolean |
containsEdge(Edge arg0)
|
boolean |
containsEdge(Edge arg0,
boolean arg1)
|
boolean |
containsNode(Node arg0)
|
boolean |
containsNode(Node arg0,
boolean arg1)
|
int |
createEdge(int source,
int target,
boolean directed)
This method will create a new edge. |
GraphPerspective |
createGraphPerspective(Filter arg0)
|
GraphPerspective |
createGraphPerspective(int[] arg0)
|
GraphPerspective |
createGraphPerspective(int[] arg0,
int[] arg1)
|
GraphPerspective |
createGraphPerspective(Node[] arg0,
Edge[] arg1)
|
int |
createNode()
This method will create a new node. |
void |
deleteEdgeAttribute(String attribute)
Deletes the attribute with the given name from edge attributes |
void |
deleteNodeAttribute(String attribute)
Deletes the attribute with the given name from node attributes |
boolean |
edgeExists(int arg0,
int arg1)
|
boolean |
edgeExists(Node arg0,
Node arg1)
|
List |
edgeMetaChildrenList(int arg0)
|
List |
edgeMetaChildrenList(Node arg0)
|
List |
edgeMetaParentsList(int arg0)
|
cytoscape.util.intr.IntEnumerator |
edges()
|
cytoscape.util.intr.IntEnumerator |
edgesAdjacent(int arg0,
boolean arg1,
boolean arg2,
boolean arg3)
|
cytoscape.util.intr.IntIterator |
edgesConnecting(int arg0,
int arg1,
boolean arg2,
boolean arg3,
boolean arg4)
|
Iterator |
edgesIterator()
|
List |
edgesList()
|
List |
edgesList(int arg0,
int arg1,
boolean arg2)
|
List |
edgesList(Node arg0,
Node arg1)
|
int |
edgeSource(int arg0)
|
int |
edgeTarget(int arg0)
|
byte |
edgeType(int arg0)
|
void |
finalize()
|
int[] |
getAdjacentEdgeIndicesArray(int arg0,
boolean arg1,
boolean arg2,
boolean arg3)
|
List |
getAdjacentEdgesList(Node arg0,
boolean arg1,
boolean arg2,
boolean arg3)
|
Object |
getClientData(String data_name)
Deprecated. Get Some client data |
Collection |
getClientDataNames()
Deprecated. Get a list of all currently available ClientData objects |
int[] |
getConnectingEdgeIndicesArray(int[] arg0)
|
List |
getConnectingEdges(List arg0)
|
int[] |
getConnectingNodeIndicesArray(int[] arg0)
|
Set |
getCyNetworkListeners()
Returns the set of listeners registered with this object. |
int |
getDegree(int arg0)
|
int |
getDegree(Node arg0)
|
Edge |
getEdge(int arg0)
|
String[] |
getEdgeAttributesList()
Return all availble Attributes for the Edges in this CyNetwork |
Object |
getEdgeAttributeValue(Edge edge,
String attribute)
Return the requested Attribute for the given Edge |
Object |
getEdgeAttributeValue(int edge,
String attribute)
Return the requested Attribute for the given Edge |
int |
getEdgeCount()
|
int |
getEdgeCount(int arg0,
int arg1,
boolean arg2)
|
int |
getEdgeCount(Node arg0,
Node arg1,
boolean arg2)
|
int |
getEdgeIndex(int arg0)
|
int[] |
getEdgeIndicesArray()
|
int[] |
getEdgeIndicesArray(int arg0,
int arg1,
boolean arg2)
|
int[] |
getEdgeIndicesArray(int arg0,
int arg1,
boolean arg2,
boolean arg3)
|
int[] |
getEdgeMetaChildIndicesArray(int arg0)
|
int[] |
getEdgeMetaParentIndicesArray(int arg0)
|
int |
getEdgeSourceIndex(int arg0)
|
int |
getEdgeTargetIndex(int arg0)
|
String |
getIdentifier()
DOCUMENT ME! |
int |
getInDegree(int arg0)
|
int |
getInDegree(int arg0,
boolean arg1)
|
int |
getInDegree(Node arg0)
|
int |
getInDegree(Node arg0,
boolean arg1)
|
int |
getIndex(Edge arg0)
|
int |
getIndex(Node arg0)
|
Node |
getNode(int arg0)
|
String[] |
getNodeAttributesList()
Return all availble Attributes for the Nodes in this CyNetwork |
String[] |
getNodeAttributesList(Edge[] edges)
Return all available Attributes for the given Edges |
String[] |
getNodeAttributesList(Node[] nodes)
Return all available Attributes for the given Nodes |
Object |
getNodeAttributeValue(int node,
String attribute)
Return the requested Attribute for the given Node |
Object |
getNodeAttributeValue(Node node,
String attribute)
Return the requested Attribute for the given Node |
int |
getNodeCount()
|
int |
getNodeIndex(int arg0)
|
int[] |
getNodeIndicesArray()
|
int[] |
getNodeMetaChildIndicesArray(int arg0)
|
int[] |
getNodeMetaParentIndicesArray(int arg0)
|
int |
getOutDegree(int arg0)
|
int |
getOutDegree(int arg0,
boolean arg1)
|
int |
getOutDegree(Node arg0)
|
int |
getOutDegree(Node arg0,
boolean arg1)
|
RootGraph |
getRootGraph()
|
int |
getRootGraphEdgeIndex(int arg0)
|
int |
getRootGraphNodeIndex(int arg0)
|
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 |
Edge |
hideEdge(Edge arg0)
|
int |
hideEdge(int arg0)
|
int[] |
hideEdges(int[] arg0)
|
List |
hideEdges(List arg0)
|
int |
hideNode(int arg0)
|
Node |
hideNode(Node arg0)
|
int[] |
hideNodes(int[] arg0)
|
List |
hideNodes(List arg0)
|
boolean |
isEdgeDirected(int arg0)
|
boolean |
isEdgeMetaChild(int arg0,
int arg1)
|
boolean |
isEdgeMetaParent(int arg0,
int arg1)
|
boolean |
isMetaChild(Node arg0,
Edge arg1)
|
boolean |
isMetaChild(Node arg0,
Node arg1)
|
boolean |
isMetaParent(Edge arg0,
Node arg1)
|
boolean |
isMetaParent(Node arg0,
Node arg1)
|
boolean |
isNeighbor(int arg0,
int arg1)
|
boolean |
isNeighbor(Node arg0,
Node arg1)
|
boolean |
isNodeMetaChild(int arg0,
int arg1)
|
boolean |
isNodeMetaParent(int arg0,
int arg1)
|
boolean |
isSelected(Edge edge)
Returns the selected state of the given edge. |
boolean |
isSelected(Node node)
Returns the selected state of the given node. |
GraphPerspective |
join(GraphPerspective arg0)
|
List |
metaParentsList(Edge arg0)
|
List |
metaParentsList(Node arg0)
|
int[] |
neighborsArray(int arg0)
|
List |
neighborsList(Node arg0)
|
boolean |
nodeExists(int arg0)
|
List |
nodeMetaChildrenList(int arg0)
|
List |
nodeMetaChildrenList(Node arg0)
|
List |
nodeMetaParentsList(int arg0)
|
cytoscape.util.intr.IntEnumerator |
nodes()
|
Iterator |
nodesIterator()
|
List |
nodesList()
|
void |
putClientData(String data_name,
Object data)
Deprecated. Networks can support client data. |
boolean |
removeCyNetworkListener(CyNetworkListener listener)
Removes the argument from the set of listeners for this object. |
boolean |
removeEdge(int edge_index,
boolean force)
This will remove this edge from the Network. |
void |
removeGraphPerspectiveChangeListener(GraphPerspectiveChangeListener arg0)
|
boolean |
removeNode(int node_index,
boolean force)
This will remove this node from the Network. |
void |
removeSelectEventListener(SelectEventListener listener)
Removes a listener for SelectEvents from this CyNetwork |
Edge |
restoreEdge(Edge arg0)
|
int |
restoreEdge(int arg0)
|
int[] |
restoreEdges(int[] arg0)
|
List |
restoreEdges(List arg0)
|
int |
restoreNode(int arg0)
|
Node |
restoreNode(Node arg0)
|
int[] |
restoreNodes(int[] arg0)
|
int[] |
restoreNodes(int[] arg0,
boolean arg1)
|
List |
restoreNodes(List arg0)
|
List |
restoreNodes(List arg0,
boolean arg1)
|
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(Edge edge,
String attribute,
Object value)
Return the requested Attribute for the given Edge |
boolean |
setEdgeAttributeValue(int edge,
String attribute,
Object value)
Return the requested Attribute for the given Edge |
String |
setIdentifier(String new_id)
DOCUMENT ME! |
boolean |
setNodeAttributeValue(int node,
String attribute,
Object value)
Return the requested Attribute for the given Node |
boolean |
setNodeAttributeValue(Node node,
String attribute,
Object value)
Return the requested Attribute for the given Node |
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 an 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 node. |
void |
setTitle(String new_id)
Can Change Throws a PropertyChangeEvent if the title has changed with a CyNetworkTitleChange object that contains the network id and the name. |
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 class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FingCyNetwork(fing.model.FingExtensibleRootGraph root,
cytoscape.util.intr.IntIterator rootGraphNodeInx,
cytoscape.util.intr.IntIterator rootGraphEdgeInx)
| Method Detail |
|---|
public String getTitle()
getTitle in interface CyNetworkpublic void setTitle(String new_id)
setTitle in interface CyNetworkpublic String getIdentifier()
getIdentifier in interface CyNetworkpublic String setIdentifier(String new_id)
setIdentifier in interface CyNetworknew_id - DOCUMENT ME!
public void putClientData(String data_name,
Object data)
CyNetwork
putClientData in interface CyNetworkdata_name - the name of this client datapublic Collection getClientDataNames()
CyNetwork
getClientDataNames in interface CyNetworkpublic Object getClientData(String data_name)
CyNetwork
getClientData in interface CyNetworkdata_name - the data to getpublic void appendNetwork(CyNetwork network)
appendNetwork in interface CyNetworkpublic void selectAllNodes()
selectAllNodes in interface CyNetworkpublic void selectAllEdges()
selectAllEdges in interface CyNetworkpublic void unselectAllNodes()
unselectAllNodes in interface CyNetworkpublic void unselectAllEdges()
unselectAllEdges in interface CyNetwork
public void setSelectedNodeState(Collection nodes,
boolean selected_state)
setSelectedNodeState in interface CyNetworknodes - a Collection of Nodesselected_state - the desired selection state for the nodes
public void setSelectedNodeState(Node node,
boolean selected_state)
setSelectedNodeState in interface CyNetworknodes - a Nodeselected_state - the desired selection state for the node
public void setSelectedEdgeState(Collection edges,
boolean selected_state)
setSelectedEdgeState in interface CyNetworkedges - a Collection of Edgesselected_state - the desired selection state for the edges
public void setSelectedEdgeState(Edge edge,
boolean selected_state)
setSelectedEdgeState in interface CyNetworkedges - an Edgeselected_state - the desired selection state for the edgepublic boolean isSelected(Node node)
isSelected in interface CyNetworknode - the node
public boolean isSelected(Edge edge)
isSelected in interface CyNetworkedge - the edge
public Set getSelectedNodes()
getSelectedNodes in interface CyNetworkpublic Set getSelectedEdges()
getSelectedEdges in interface CyNetworkpublic void addSelectEventListener(SelectEventListener listener)
addSelectEventListener in interface CyNetworklistener - public void removeSelectEventListener(SelectEventListener listener)
removeSelectEventListener in interface CyNetworklistener - public SelectFilter getSelectFilter()
getSelectFilter in interface CyNetwork
public Object getNodeAttributeValue(Node node,
String attribute)
node - the given CyNodeattribute - the name of the requested attribute
public Object getNodeAttributeValue(int node,
String attribute)
public Object getEdgeAttributeValue(Edge edge,
String attribute)
public Object getEdgeAttributeValue(int edge,
String attribute)
public String[] getNodeAttributesList()
public String[] getNodeAttributesList(Node[] nodes)
public String[] getEdgeAttributesList()
public String[] getNodeAttributesList(Edge[] edges)
public boolean setNodeAttributeValue(Node node,
String attribute,
Object value)
node - the given CyNodeattribute - the name of the requested attributevalue - the value to be set
public boolean setNodeAttributeValue(int node,
String attribute,
Object value)
public boolean setEdgeAttributeValue(Edge edge,
String attribute,
Object value)
public boolean setEdgeAttributeValue(int edge,
String attribute,
Object value)
public void deleteNodeAttribute(String attribute)
public void deleteEdgeAttribute(String attribute)
public void addCyNetworkListener(CyNetworkListener listener)
addCyNetworkListener in interface CyNetworkpublic boolean removeCyNetworkListener(CyNetworkListener listener)
removeCyNetworkListener in interface CyNetworkpublic Set getCyNetworkListeners()