|
Cytoscape 2.3.1 (c) 2004 ISB, MSKCC, UCSD | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.layout.AttributeLayout
This class provides methods for performing operations on a graph related to the values of a particular data attribute attached to the nodes of the graph. It allows edges to be added between nodes that share an attribute value, to lay out the graph by grouping nodes with shared attribute values, and to clean up after these operations by removing the nodes and edges that were created.
Field Summary | |
static int |
CLEAR_OBJECTS
|
static int |
CREATE_EDGES
|
static int |
DO_LAYOUT
|
Constructor Summary | |
AttributeLayout(CyNetworkView cyNetView)
|
Method Summary | |
Map |
buildValueMap(String attributeName)
This function build a Map structure based on the unique values of the data attribute specified by the argument. |
void |
clearPreviousGraphObjects()
Removes any nodes and edges that were created by a previously called method of this class. |
void |
createEdges(String attributeName)
Adds edges between all nodes that share a value for the given node attribute. |
void |
doCallback(String attributeName,
int functionToPerform)
|
void |
doLayout(String attributeName)
Performs a layout operation based on values of the given node attribute. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DO_LAYOUT
public static final int CREATE_EDGES
public static final int CLEAR_OBJECTS
Constructor Detail |
public AttributeLayout(CyNetworkView cyNetView)
Method Detail |
public void doCallback(String attributeName, int functionToPerform)
public void clearPreviousGraphObjects()
public void doLayout(String attributeName)
This method first removes any nodes or edges created by previous calls to
methods in this class by calling clearPreviousGraphObjects()
.
This method works by cloning the existing GraphPerspective and computing the layout on modifications of that clone. The computed layout is copied to the current GraphPerspective and the newly created category nodes are added.
public void createEdges(String attributeName)
clearPreviousGraphObjects
method.
public Map buildValueMap(String attributeName)
|
www.cytoscape.org | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |