|
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 CyLayoutAlgorithm
Method Summary | |
---|---|
void |
doLayout()
This method performs the layout on the current network using the current network view. |
void |
doLayout(CyNetworkView networkView)
This method performs the layout on the current network. |
void |
doLayout(CyNetworkView networkView,
TaskMonitor monitor)
This method performs the layout on the current network, but assumes that the layout is part of an existing monitored task |
List<String> |
getInitialAttributeList()
This returns a (possibly empty) List of Strings that is used for the attribute list in the menu for attribute-based layouts. |
String |
getName()
Get the name of this layout. |
LayoutProperties |
getSettings()
This method is used to ask the algorithm to get all of its tunables and return them to the caller. |
JPanel |
getSettingsPanel()
This method should return a JPanel that implements the UI to set the tuneable parameters for the algorithm. |
void |
halt()
Can be used to stop the layout from running. |
void |
lockNode(NodeView v)
Lock this node. |
void |
lockNodes(NodeView[] nodes)
Lock this array of nodes. |
void |
revertSettings()
This method is used to ask the algorithm to revert its settings to some previous state. |
void |
setLayoutAttribute(String attributeName)
Sets the attribute to use for node- or edge- based attribute layouts |
void |
setSelectedOnly(boolean selectedOnly)
Sets the "selectedOnly" flag |
byte[] |
supportsEdgeAttributes()
Tests to see if this layout supports doing a layout based on edge attributes. |
byte[] |
supportsNodeAttributes()
Tests to see if this layout supports doing a layout based on node attributes. |
boolean |
supportsSelectedOnly()
Tests to see if this layout supports doing a layout on a subset of the nodes in this network view. |
void |
unlockAllNodes()
Unlock all of the nodes. |
void |
unlockNode(NodeView v)
Unlock this node. |
void |
updateSettings()
This method is used to ask the algorithm to get its settings from the settings dialog. |
Method Detail |
---|
void doLayout()
void doLayout(CyNetworkView networkView)
networkView
- the CyNetworkView on which to perform the layoutvoid doLayout(CyNetworkView networkView, TaskMonitor monitor)
networkView
- the CyNetworkView on which to perform the layoutmonitor
- the task monitor to useboolean supportsSelectedOnly()
void setSelectedOnly(boolean selectedOnly)
selectedOnly
- boolean value that tells the layout algorithm whether to
only layout the selected nodesbyte[] supportsNodeAttributes()
byte[] supportsEdgeAttributes()
void setLayoutAttribute(String attributeName)
attributeName
- String with the name of the attribute to useList<String> getInitialAttributeList()
JPanel getSettingsPanel()
void revertSettings()
void updateSettings()
LayoutProperties getSettings()
String getName()
void lockNodes(NodeView[] nodes)
nodes
- the array of nodes to lockvoid lockNode(NodeView v)
v
- the NodeView of the node to lockvoid unlockNode(NodeView v)
v
- the node to unlockvoid unlockAllNodes()
void halt()
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |