|
|||||||||
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
ColtCyNetwork extends the GraphPerspective implementation found in the coltginy pacakge of the GINY distribution. ColtCyNetwork 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 | |
---|---|
protected Map |
clientData
The ClientData map |
protected FlagFilter |
flagger
The default object for flagging graph objects This will be removed for 2.4 |
protected Set |
listeners
The Network Listeners Set |
protected SelectFilter |
selectFilter
The default object to set the selected state of nodes and edges |
protected String |
title
|
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(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 |
int |
addEdge(String attribute,
Object value)
Adds a edge to this Network, by looking it up via the given attribute and value |
void |
addFlagEventListener(FlagEventListener listener)
Deprecated. As of 2.3, replaced by addSelectEventListener(SelectEventListener) |
void |
addGraphPerspectiveChangeListener(giny.model.GraphPerspectiveChangeListener arg0)
|
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 |
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 |
void |
beginActivity(String callerID)
Deprecated. This method should be called before reading or changing the data held in this network object. A CyNetworkEvent of type CyNetworkEvent.BEGIN will be fired to all listeners attached to this object, *only* if this is the first begin of a nested stack of begin/end methods. No event will be fired if a previous beginActivity call hasn't been closed by a matching endActivity call. The argument is simply a String that is useful for identifying the caller of this method. This is provided for debugging purposes, in case an algorithm forgets to provide a matching end method for each begin. |
Object |
clone()
|
boolean |
containsEdge(giny.model.Edge arg0)
|
boolean |
containsEdge(giny.model.Edge arg0,
boolean arg1)
|
boolean |
containsNode(giny.model.Node arg0)
|
boolean |
containsNode(giny.model.Node arg0,
boolean arg1)
|
int |
createEdge(int source,
int target,
boolean directed)
This method will create a new edge. |
giny.model.GraphPerspective |
createGraphPerspective(giny.filter.Filter arg0)
|
giny.model.GraphPerspective |
createGraphPerspective(int[] arg0)
|
giny.model.GraphPerspective |
createGraphPerspective(int[] arg0,
int[] arg1)
|
giny.model.GraphPerspective |
createGraphPerspective(giny.model.Node[] arg0,
giny.model.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(giny.model.Node arg0,
giny.model.Node arg1)
|
List |
edgeMetaChildrenList(int arg0)
|
List |
edgeMetaChildrenList(giny.model.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(giny.model.Node arg0,
giny.model.Node arg1)
|
int |
edgeSource(int arg0)
|
int |
edgeTarget(int arg0)
|
byte |
edgeType(int arg0)
|
void |
endActivity(String callerID)
Deprecated. This method should be called when an algorithm is finished reading or changing the data held in this network object. A CyNetworkEvent of type CyNetworkEvent.END will be fired to listeners attached to this object, *only* if this is the last end in a nested block of begin/end calls. The argument is a String for identifying the caller of this method. |
void |
finalize()
|
protected void |
fireEvent(int type)
Fires an event to all listeners registered with this object. |
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. This method is provided as a failsafe in case an algorithm fails to close its beginActivity calls without matching endActivity calls. If the current state is not clear, this method resets this object to the state of no activity and fires a CyNetworkEvent of type CyNetworkEvent.END to all registered listeners. If the current state is clear (i.e., there are no calls to beginActivity without matching endActivity calls), then this method does nothing. The argument is a String for identifying the caller of this method. |
int[] |
getAdjacentEdgeIndicesArray(int arg0,
boolean arg1,
boolean arg2,
boolean arg3)
|
List |
getAdjacentEdgesList(giny.model.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(giny.model.Node arg0)
|
giny.model.Edge |
getEdge(int arg0)
|
GraphObjAttributes |
getEdgeAttributes()
Deprecated. Use Cytoscape.getEdgeAttributes() instead. This
method will be removed in September, 2006. |
String[] |
getEdgeAttributesList()
Return all availble Attributes for the Edges in this CyNetwork |
Object |
getEdgeAttributeValue(giny.model.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(giny.model.Node arg0,
giny.model.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)
|
ExpressionData |
getExpressionData()
Deprecated. @see{getNetworkData} Returns the expression data object associated with this network. |
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. This is a GraphPerspective now! Therefore treat it as such. This method will not be changed and will simply return itself, recasted as a GraphPerspective |
String |
getIdentifier()
Can't Change |
int |
getInDegree(int arg0)
|
int |
getInDegree(int arg0,
boolean arg1)
|
int |
getInDegree(giny.model.Node arg0)
|
int |
getInDegree(giny.model.Node arg0,
boolean arg1)
|
int |
getIndex(giny.model.Edge arg0)
|
int |
getIndex(giny.model.Node arg0)
|
boolean |
getNeedsLayout()
Deprecated. |
giny.model.Node |
getNode(int arg0)
|
GraphObjAttributes |
getNodeAttributes()
Deprecated. Use Cytoscape.getNodeAttributes() instead. This
method will be removed in September, 2006. |
String[] |
getNodeAttributesList()
Return all availble Attributes for the Nodes in this CyNetwork |
String[] |
getNodeAttributesList(giny.model.Edge[] edges)
Return all available Attributes for the given Edges |
String[] |
getNodeAttributesList(giny.model.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(giny.model.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(giny.model.Node arg0)
|
int |
getOutDegree(giny.model.Node arg0,
boolean arg1)
|
giny.model.RootGraph |
getRootGraph()
Deprecated. use @link{Cytoscape.getRootGraph()} instead |
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 |
giny.model.Edge |
hideEdge(giny.model.Edge arg0)
|
int |
hideEdge(int arg0)
|
int[] |
hideEdges(int[] arg0)
|
List |
hideEdges(List arg0)
|
int |
hideNode(int arg0)
|
giny.model.Node |
hideNode(giny.model.Node arg0)
|
int[] |
hideNodes(int[] arg0)
|
List |
hideNodes(List arg0)
|
protected void |
initialize()
|
boolean |
isEdgeDirected(int arg0)
|
boolean |
isEdgeMetaChild(int arg0,
int arg1)
|
boolean |
isEdgeMetaParent(int arg0,
int arg1)
|
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 |
isMetaChild(giny.model.Node arg0,
giny.model.Edge arg1)
|
boolean |
isMetaChild(giny.model.Node arg0,
giny.model.Node arg1)
|
boolean |
isMetaParent(giny.model.Edge arg0,
giny.model.Node arg1)
|
boolean |
isMetaParent(giny.model.Node arg0,
giny.model.Node arg1)
|
boolean |
isNeighbor(int arg0,
int arg1)
|
boolean |
isNeighbor(giny.model.Node arg0,
giny.model.Node arg1)
|
boolean |
isNodeMetaChild(int arg0,
int arg1)
|
boolean |
isNodeMetaParent(int arg0,
int arg1)
|
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. This method returns true if the current state of this object is clear; that is, if every beginActivity call has been followed by a matching endActivity call, so that one can reasonably assume that no one is currently working with the network. |
giny.model.GraphPerspective |
join(giny.model.GraphPerspective arg0)
|
List |
metaParentsList(giny.model.Edge arg0)
|
List |
metaParentsList(giny.model.Node arg0)
|
int[] |
neighborsArray(int arg0)
|
List |
neighborsList(giny.model.Node arg0)
|
boolean |
nodeExists(int arg0)
|
List |
nodeMetaChildrenList(int arg0)
|
List |
nodeMetaChildrenList(giny.model.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 |
removeFlagEventListener(FlagEventListener listener)
Deprecated. As of 2.3, replaced by removeSelectEventListener(SelectEventListener) |
void |
removeGraphPerspectiveChangeListener(giny.model.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 |
giny.model.Edge |
restoreEdge(giny.model.Edge arg0)
|
int |
restoreEdge(int arg0)
|
int[] |
restoreEdges(int[] arg0)
|
List |
restoreEdges(List arg0)
|
int |
restoreNode(int arg0)
|
giny.model.Node |
restoreNode(giny.model.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 |
void |
setEdgeAttributes(GraphObjAttributes newEdgeAttributes)
Deprecated. This method will be removed in September, 2006. |
boolean |
setEdgeAttributeValue(giny.model.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 |
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) |
void |
setGraphPerspective(giny.model.GraphPerspective perspective)
Deprecated. |
String |
setIdentifier(String new_id)
Can't Change |
void |
setNeedsLayout(boolean needsLayout)
Deprecated. |
void |
setNewGraphFrom(CyNetwork newNetwork,
boolean replaceAttributes)
Deprecated. |
void |
setNodeAttributes(GraphObjAttributes newNodeAttributes)
Deprecated. This method will be removed in September, 2006. |
boolean |
setNodeAttributeValue(int node,
String attribute,
Object value)
Return the requested Attribute for the given Node |
boolean |
setNodeAttributeValue(giny.model.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 |
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 class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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, 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 |
Field Detail |
---|
protected String title
protected Set listeners
protected Map clientData
protected FlagFilter flagger
protected SelectFilter selectFilter
Constructor Detail |
---|
public FingCyNetwork(fing.model.FingExtensibleRootGraph root, cytoscape.util.intr.IntIterator rootGraphNodeInx, cytoscape.util.intr.IntIterator rootGraphEdgeInx)
Method Detail |
---|
protected void initialize()
public String getTitle()
getTitle
in interface CyNetwork
public void setTitle(String new_id)
setTitle
in interface CyNetwork
public String getIdentifier()
CyNetwork
getIdentifier
in interface CyNetwork
public String setIdentifier(String new_id)
CyNetwork
setIdentifier
in interface CyNetwork
public void putClientData(String data_name, Object data)
CyNetwork
putClientData
in interface CyNetwork
data_name
- the name of this client datapublic Collection getClientDataNames()
CyNetwork
getClientDataNames
in interface CyNetwork
public Object getClientData(String data_name)
CyNetwork
getClientData
in interface CyNetwork
data_name
- the data to getpublic void beginActivity(String callerID)
The argument is simply a String that is useful for identifying the caller of this method. This is provided for debugging purposes, in case an algorithm forgets to provide a matching end method for each begin.
beginActivity
in interface CyNetwork
public void endActivity(String callerID)
The argument is a String for identifying the caller of this method.
endActivity
in interface CyNetwork
public boolean isStateClear()
isStateClear
in interface CyNetwork
public void forceClear(String callerID)
If the current state is clear (i.e., there are no calls to beginActivity without matching endActivity calls), then this method does nothing.
The argument is a String for identifying the caller of this method.
forceClear
in interface CyNetwork
public giny.model.RootGraph getRootGraph()
getRootGraph
in interface giny.model.GraphPerspective
public giny.model.GraphPerspective getGraphPerspective()
getGraphPerspective
in interface CyNetwork
public void setGraphPerspective(giny.model.GraphPerspective perspective)
appendNetwork(cytoscape.CyNetwork)
public void setNewGraphFrom(CyNetwork newNetwork, boolean replaceAttributes)
setNewGraphFrom
in interface CyNetwork
appendNetwork(cytoscape.CyNetwork)
public void appendNetwork(CyNetwork network)
appendNetwork
in interface CyNetwork
public boolean getNeedsLayout()
public void setNeedsLayout(boolean needsLayout)
public GraphObjAttributes getNodeAttributes()
Cytoscape.getNodeAttributes()
instead. This
method will be removed in September, 2006.
getNodeAttributes
in interface CyNetwork
public void setNodeAttributes(GraphObjAttributes newNodeAttributes)
public GraphObjAttributes getEdgeAttributes()
Cytoscape.getEdgeAttributes()
instead. This
method will be removed in September, 2006.
getEdgeAttributes
in interface CyNetwork
public void setEdgeAttributes(GraphObjAttributes newEdgeAttributes)
public ExpressionData getExpressionData()
getExpressionData
in interface CyNetwork
public void setExpressionData(ExpressionData newData)
setExpressionData
in interface CyNetwork
public void selectAllNodes()
selectAllNodes
in interface CyNetwork
public void selectAllEdges()
selectAllEdges
in interface CyNetwork
public void unselectAllNodes()
unselectAllNodes
in interface CyNetwork
public void unselectAllEdges()
unselectAllEdges
in interface CyNetwork
public void setSelectedNodeState(Collection nodes, boolean selected_state)
setSelectedNodeState
in interface CyNetwork
nodes
- a Collection of Nodesselected_state
- the desired selection state for the nodespublic void setSelectedEdgeState(Collection edges, boolean selected_state)
setSelectedEdgeState
in interface CyNetwork
edges
- a Collection of Edgesselected_state
- the desired selection state for the edgespublic boolean isSelected(giny.model.Node node)
isSelected
in interface CyNetwork
node
- the node
public boolean isSelected(giny.model.Edge edge)
isSelected
in interface CyNetwork
edge
- the edge
public Set getSelectedNodes()
getSelectedNodes
in interface CyNetwork
public Set getSelectedEdges()
getSelectedEdges
in interface CyNetwork
public void addSelectEventListener(SelectEventListener listener)
addSelectEventListener
in interface CyNetwork
listener
- public void removeSelectEventListener(SelectEventListener listener)
removeSelectEventListener
in interface CyNetwork
listener
- public SelectFilter getSelectFilter()
getSelectFilter
in interface CyNetwork
public FlagFilter getFlagger()
getSelectFilter()
getFlagger
in interface CyNetwork
public void flagAllNodes()
selectAllNodes()
CyNetwork
flagAllNodes
in interface CyNetwork
public void flagAllEdges()
selectAllEdges()
CyNetwork
flagAllEdges
in interface CyNetwork
public void unFlagAllNodes()
unselectAllNodes()
CyNetwork
unFlagAllNodes
in interface CyNetwork
public void unFlagAllEdges()
unselectAllEdges()
CyNetwork
unFlagAllEdges
in interface CyNetwork
public void setFlagged(giny.model.Node node, boolean state)
setSelectedNodeState(Collection,boolean)
setFlagged
in interface CyNetwork
public void setFlaggedNodes(Collection nodes, boolean state)
setSelectedNodeState(Collection,boolean)
setFlaggedNodes
in interface CyNetwork
public void setFlaggedNodes(int[] nodes, boolean state)
setSelectedNodeState(Collection,boolean)
setFlaggedNodes
in interface CyNetwork
public void setFlagged(giny.model.Edge edge, boolean state)
setSelectedEdgeState(Collection,boolean)
setFlagged
in interface CyNetwork
public void setFlaggedEdges(Collection edges, boolean state)
setSelectedEdgeState(Collection,boolean)
setFlaggedEdges
in interface CyNetwork
public void setFlaggedEdges(int[] edges, boolean state)
setSelectedEdgeState(Collection,boolean)
setFlaggedEdges
in interface CyNetwork
public boolean isFlagged(giny.model.Node node)
isSelected(Node)
CyNetwork
isFlagged
in interface CyNetwork
public boolean isFlagged(giny.model.Edge edge)
isSelected(Edge)
CyNetwork
isFlagged
in interface CyNetwork
public Set getFlaggedNodes()
getSelectedNodes()
CyNetwork
getFlaggedNodes
in interface CyNetwork
public Set getFlaggedEdges()
getSelectedEdges()
CyNetwork
getFlaggedEdges
in interface CyNetwork
public int[] getFlaggedNodeIndicesArray()
getSelectedNodes()
CyNetwork
getFlaggedNodeIndicesArray
in interface CyNetwork
public int[] getFlaggedEdgeIndicesArray()
getSelectedEdges()
CyNetwork
getFlaggedEdgeIndicesArray
in interface CyNetwork
public void addFlagEventListener(FlagEventListener listener)
addSelectEventListener(SelectEventListener)
CyNetwork
addFlagEventListener
in interface CyNetwork
public void removeFlagEventListener(FlagEventListener listener)
removeSelectEventListener(SelectEventListener)
CyNetwork
removeFlagEventListener
in interface CyNetwork
public Object getNodeAttributeValue(giny.model.Node node, String attribute)
getNodeAttributeValue
in interface CyNetwork
node
- the given CyNodeattribute
- the name of the requested attribute
public Object getNodeAttributeValue(int node, String attribute)
getNodeAttributeValue
in interface CyNetwork
public Object getEdgeAttributeValue(giny.model.Edge edge, String attribute)
getEdgeAttributeValue
in interface CyNetwork
public Object getEdgeAttributeValue(int edge, String attribute)
getEdgeAttributeValue
in interface CyNetwork
public String[] getNodeAttributesList()
getNodeAttributesList
in interface CyNetwork
public String[] getNodeAttributesList(giny.model.Node[] nodes)
getNodeAttributesList
in interface CyNetwork
public String[] getEdgeAttributesList()
getEdgeAttributesList
in interface CyNetwork
public String[] getNodeAttributesList(giny.model.Edge[] edges)
getNodeAttributesList
in interface CyNetwork
public boolean setNodeAttributeValue(giny.model.Node node, String attribute, Object value)
setNodeAttributeValue
in interface CyNetwork
node
- the given CyNodeattribute
- the name of the requested attributevalue
- the value to be set
public boolean setNodeAttributeValue(int node, String attribute, Object value)
setNodeAttributeValue
in interface CyNetwork
public boolean setEdgeAttributeValue(giny.model.Edge edge, String attribute, Object value)
setEdgeAttributeValue
in interface CyNetwork
public boolean setEdgeAttributeValue(int edge, String attribute, Object value)
setEdgeAttributeValue
in interface CyNetwork
public void deleteNodeAttribute(String attribute)
deleteNodeAttribute
in interface CyNetwork
public void deleteEdgeAttribute(String attribute)
deleteEdgeAttribute
in interface CyNetwork
public void addCyNetworkListener(CyNetworkListener listener)
addCyNetworkListener
in interface CyNetwork
public boolean removeCyNetworkListener(CyNetworkListener listener)
removeCyNetworkListener
in interface CyNetwork
public Set getCyNetworkListeners()
getCyNetworkListeners
in interface CyNetwork
protected void fireEvent(int type)
public int createNode()
public int addNode(int cytoscape_node)
addNode
in interface CyNetwork
public CyNode addNode(giny.model.Node cytoscape_node)
addNode
in interface CyNetwork
public int addNode(String attribute, Object value)
public boolean removeNode(int node_index, boolean force)
removeNode
in interface CyNetwork
force
- force this node to be removed from all Networks
public int createEdge(int source, int target, boolean directed)
source
- the source nodetarget
- the target nodedirected
- weather the edge should be directed
public int addEdge(int cytoscape_edge)
addEdge
in interface CyNetwork
public CyEdge addEdge(giny.model.Edge cytoscape_edge)
addEdge
in interface CyNetwork
public int addEdge(String attribute, Object value)
public boolean removeEdge(int edge_index, boolean force)
removeEdge
in interface CyNetwork
force
- force this edge to be removed from all Networks
public cytoscape.util.intr.IntEnumerator nodes()
nodes
in interface cytoscape.graph.fixed.FixedGraph
public cytoscape.util.intr.IntEnumerator edges()
edges
in interface cytoscape.graph.fixed.FixedGraph
public boolean nodeExists(int arg0)
nodeExists
in interface cytoscape.graph.fixed.FixedGraph
public byte edgeType(int arg0)
edgeType
in interface cytoscape.graph.fixed.FixedGraph
public int edgeSource(int arg0)
edgeSource
in interface cytoscape.graph.fixed.FixedGraph
public int edgeTarget(int arg0)
edgeTarget
in interface cytoscape.graph.fixed.FixedGraph
public cytoscape.util.intr.IntEnumerator edgesAdjacent(int arg0, boolean arg1, boolean arg2, boolean arg3)
edgesAdjacent
in interface cytoscape.graph.fixed.FixedGraph
public cytoscape.util.intr.IntIterator edgesConnecting(int arg0, int arg1, boolean arg2, boolean arg3, boolean arg4)
edgesConnecting
in interface cytoscape.graph.fixed.FixedGraph
public void addGraphPerspectiveChangeListener(giny.model.GraphPerspectiveChangeListener arg0)
addGraphPerspectiveChangeListener
in interface giny.model.GraphPerspective
public void removeGraphPerspectiveChangeListener(giny.model.GraphPerspectiveChangeListener arg0)
removeGraphPerspectiveChangeListener
in interface giny.model.GraphPerspective
public Object clone()
clone
in interface giny.model.GraphPerspective
clone
in class Object
public int getNodeCount()
getNodeCount
in interface giny.model.GraphPerspective
public int getEdgeCount()
getEdgeCount
in interface giny.model.GraphPerspective
public Iterator nodesIterator()
nodesIterator
in interface giny.model.GraphPerspective
public List nodesList()
nodesList
in interface giny.model.GraphPerspective
public int[] getNodeIndicesArray()
getNodeIndicesArray
in interface giny.model.GraphPerspective
public Iterator edgesIterator()
edgesIterator
in interface giny.model.GraphPerspective
public List edgesList()
edgesList
in interface giny.model.GraphPerspective
public int[] getEdgeIndicesArray()
getEdgeIndicesArray
in interface giny.model.GraphPerspective
public int[] getEdgeIndicesArray(int arg0, int arg1, boolean arg2, boolean arg3)
getEdgeIndicesArray
in interface giny.model.GraphPerspective
public giny.model.Node hideNode(giny.model.Node arg0)
hideNode
in interface giny.model.GraphPerspective
public int hideNode(int arg0)
hideNode
in interface giny.model.GraphPerspective
public List hideNodes(List arg0)
hideNodes
in interface giny.model.GraphPerspective
public int[] hideNodes(int[] arg0)
hideNodes
in interface giny.model.GraphPerspective
public giny.model.Node restoreNode(giny.model.Node arg0)
restoreNode
in interface giny.model.GraphPerspective
public int restoreNode(int arg0)
restoreNode
in interface giny.model.GraphPerspective
public List restoreNodes(List arg0)
restoreNodes
in interface giny.model.GraphPerspective
public List restoreNodes(List arg0, boolean arg1)
restoreNodes
in interface giny.model.GraphPerspective
public int[] restoreNodes(int[] arg0, boolean arg1)
restoreNodes
in interface giny.model.GraphPerspective
public int[] restoreNodes(int[] arg0)
restoreNodes
in interface giny.model.GraphPerspective
public giny.model.Edge hideEdge(giny.model.Edge arg0)
hideEdge
in interface giny.model.GraphPerspective
public int hideEdge(int arg0)
hideEdge
in interface giny.model.GraphPerspective
public List hideEdges(List arg0)
hideEdges
in interface giny.model.GraphPerspective
public int[] hideEdges(int[] arg0)
hideEdges
in interface giny.model.GraphPerspective
public giny.model.Edge restoreEdge(giny.model.Edge arg0)
restoreEdge
in interface giny.model.GraphPerspective
public int restoreEdge(int arg0)
restoreEdge
in interface giny.model.GraphPerspective
public List restoreEdges(List arg0)
restoreEdges
in interface giny.model.GraphPerspective
public int[] restoreEdges(int[] arg0)
restoreEdges
in interface giny.model.GraphPerspective
public boolean containsNode(giny.model.Node arg0)
containsNode
in interface giny.model.GraphPerspective
public boolean containsNode(giny.model.Node arg0, boolean arg1)
containsNode
in interface giny.model.GraphPerspective
public boolean containsEdge(giny.model.Edge arg0)
containsEdge
in interface giny.model.GraphPerspective
public boolean containsEdge(giny.model.Edge arg0, boolean arg1)
containsEdge
in interface giny.model.GraphPerspective
public giny.model.GraphPerspective join(giny.model.GraphPerspective arg0)
join
in interface giny.model.GraphPerspective
public giny.model.GraphPerspective createGraphPerspective(giny.model.Node[] arg0, giny.model.Edge[] arg1)
createGraphPerspective
in interface giny.model.GraphPerspective
public giny.model.GraphPerspective createGraphPerspective(int[] arg0, int[] arg1)
createGraphPerspective
in interface giny.model.GraphPerspective
public giny.model.GraphPerspective createGraphPerspective(giny.filter.Filter arg0)
createGraphPerspective
in interface giny.model.GraphPerspective
public List neighborsList(giny.model.Node arg0)
neighborsList
in interface giny.model.GraphPerspective
public int[] neighborsArray(int arg0)
neighborsArray
in interface giny.model.GraphPerspective
public boolean isNeighbor(giny.model.Node arg0, giny.model.Node arg1)
isNeighbor
in interface giny.model.GraphPerspective
public boolean isNeighbor(int arg0, int arg1)
isNeighbor
in interface giny.model.GraphPerspective
public boolean edgeExists(giny.model.Node arg0, giny.model.Node arg1)
edgeExists
in interface giny.model.GraphPerspective
public boolean edgeExists(int arg0, int arg1)
edgeExists
in interface giny.model.GraphPerspective
public int getEdgeCount(giny.model.Node arg0, giny.model.Node arg1, boolean arg2)
getEdgeCount
in interface giny.model.GraphPerspective
public int getEdgeCount(int arg0, int arg1, boolean arg2)
getEdgeCount
in interface giny.model.GraphPerspective
public List edgesList(giny.model.Node arg0, giny.model.Node arg1)
edgesList
in interface giny.model.GraphPerspective
public List edgesList(int arg0, int arg1, boolean arg2)
edgesList
in interface giny.model.GraphPerspective
public int[] getEdgeIndicesArray(int arg0, int arg1, boolean arg2)
getEdgeIndicesArray
in interface giny.model.GraphPerspective
public int getInDegree(giny.model.Node arg0)
getInDegree
in interface giny.model.GraphPerspective
public int getInDegree(int arg0)
getInDegree
in interface giny.model.GraphPerspective
public int getInDegree(giny.model.Node arg0, boolean arg1)
getInDegree
in interface giny.model.GraphPerspective
public int getInDegree(int arg0, boolean arg1)
getInDegree
in interface giny.model.GraphPerspective
public int getOutDegree(giny.model.Node arg0)
getOutDegree
in interface giny.model.GraphPerspective
public int getOutDegree(int arg0)
getOutDegree
in interface giny.model.GraphPerspective
public int getOutDegree(giny.model.Node arg0, boolean arg1)
getOutDegree
in interface giny.model.GraphPerspective
public int getOutDegree(int arg0, boolean arg1)
getOutDegree
in interface giny.model.GraphPerspective
public int getDegree(giny.model.Node arg0)
getDegree
in interface giny.model.GraphPerspective
public int getDegree(int arg0)
getDegree
in interface giny.model.GraphPerspective
public int getIndex(giny.model.Node arg0)
getIndex
in interface giny.model.GraphPerspective
public int getNodeIndex(int arg0)
getNodeIndex
in interface giny.model.GraphPerspective
public int getRootGraphNodeIndex(int arg0)
getRootGraphNodeIndex
in interface giny.model.GraphPerspective
public giny.model.Node getNode(int arg0)
getNode
in interface giny.model.GraphPerspective
public int getIndex(giny.model.Edge arg0)
getIndex
in interface giny.model.GraphPerspective
public int getEdgeIndex(int arg0)
getEdgeIndex
in interface giny.model.GraphPerspective
public int getRootGraphEdgeIndex(int arg0)
getRootGraphEdgeIndex
in interface giny.model.GraphPerspective
public giny.model.Edge getEdge(int arg0)
getEdge
in interface giny.model.GraphPerspective
public int getEdgeSourceIndex(int arg0)
getEdgeSourceIndex
in interface giny.model.GraphPerspective
public int getEdgeTargetIndex(int arg0)
getEdgeTargetIndex
in interface giny.model.GraphPerspective
public boolean isEdgeDirected(int arg0)
isEdgeDirected
in interface giny.model.GraphPerspective
public boolean isMetaParent(giny.model.Node arg0, giny.model.Node arg1)
isMetaParent
in interface giny.model.GraphPerspective
public boolean isNodeMetaParent(int arg0, int arg1)
isNodeMetaParent
in interface giny.model.GraphPerspective
public List metaParentsList(giny.model.Node arg0)
metaParentsList
in interface giny.model.GraphPerspective
public List nodeMetaParentsList(int arg0)
nodeMetaParentsList
in interface giny.model.GraphPerspective
public int[] getNodeMetaParentIndicesArray(int arg0)
getNodeMetaParentIndicesArray
in interface giny.model.GraphPerspective
public boolean isMetaChild(giny.model.Node arg0, giny.model.Node arg1)
isMetaChild
in interface giny.model.GraphPerspective
public boolean isNodeMetaChild(int arg0, int arg1)
isNodeMetaChild
in interface giny.model.GraphPerspective
public List nodeMetaChildrenList(giny.model.Node arg0)
nodeMetaChildrenList
in interface giny.model.GraphPerspective
public List nodeMetaChildrenList(int arg0)
nodeMetaChildrenList
in interface giny.model.GraphPerspective
public int[] getNodeMetaChildIndicesArray(int arg0)
getNodeMetaChildIndicesArray
in interface giny.model.GraphPerspective
public boolean isMetaParent(giny.model.Edge arg0, giny.model.Node arg1)
isMetaParent
in interface giny.model.GraphPerspective
public boolean isEdgeMetaParent(int arg0, int arg1)
isEdgeMetaParent
in interface giny.model.GraphPerspective
public List metaParentsList(giny.model.Edge arg0)
metaParentsList
in interface giny.model.GraphPerspective
public List edgeMetaParentsList(int arg0)
edgeMetaParentsList
in interface giny.model.GraphPerspective
public int[] getEdgeMetaParentIndicesArray(int arg0)
getEdgeMetaParentIndicesArray
in interface giny.model.GraphPerspective
public boolean isMetaChild(giny.model.Node arg0, giny.model.Edge arg1)
isMetaChild
in interface giny.model.GraphPerspective
public boolean isEdgeMetaChild(int arg0, int arg1)
isEdgeMetaChild
in interface giny.model.GraphPerspective
public List edgeMetaChildrenList(giny.model.Node arg0)
edgeMetaChildrenList
in interface giny.model.GraphPerspective
public List edgeMetaChildrenList(int arg0)
edgeMetaChildrenList
in interface giny.model.GraphPerspective
public int[] getEdgeMetaChildIndicesArray(int arg0)
getEdgeMetaChildIndicesArray
in interface giny.model.GraphPerspective
public List getAdjacentEdgesList(giny.model.Node arg0, boolean arg1, boolean arg2, boolean arg3)
getAdjacentEdgesList
in interface giny.model.GraphPerspective
public int[] getAdjacentEdgeIndicesArray(int arg0, boolean arg1, boolean arg2, boolean arg3)
getAdjacentEdgeIndicesArray
in interface giny.model.GraphPerspective
public List getConnectingEdges(List arg0)
getConnectingEdges
in interface giny.model.GraphPerspective
public int[] getConnectingEdgeIndicesArray(int[] arg0)
getConnectingEdgeIndicesArray
in interface giny.model.GraphPerspective
public int[] getConnectingNodeIndicesArray(int[] arg0)
getConnectingNodeIndicesArray
in interface giny.model.GraphPerspective
public giny.model.GraphPerspective createGraphPerspective(int[] arg0)
createGraphPerspective
in interface giny.model.GraphPerspective
public void finalize()
finalize
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |