|
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 |
java.lang.Object cytoscape.layout.LayoutAdapter
public abstract class LayoutAdapter
LayoutAdapter provides a *very* minimal interface to implement a layout algorithm. It is meant to be used by graph readers and plugins that provide their own node placement and whose layout approach should not be made available outside of the reader or plugin's context.
Constructor Summary | |
---|---|
LayoutAdapter()
|
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. |
abstract 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()
DOCUMENT ME! |
void |
lockNode(NodeView v)
DOCUMENT ME! |
void |
lockNodes(NodeView[] nodes)
DOCUMENT ME! |
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()
DOCUMENT ME! |
void |
unlockNode(NodeView v)
DOCUMENT ME! |
void |
updateSettings()
This method is used to ask the algorithm to get its settings from the seetings dialog. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutAdapter()
Method Detail |
---|
public void doLayout()
doLayout
in interface CyLayoutAlgorithm
public void doLayout(CyNetworkView networkView)
doLayout
in interface CyLayoutAlgorithm
networkView
- the CyNetworkView on which to perform the layoutpublic abstract void doLayout(CyNetworkView networkView, TaskMonitor monitor)
doLayout
in interface CyLayoutAlgorithm
networkView
- the CyNetworkView on which to perform the layoutmonitor
- the task monitor to usepublic String getName()
getName
in interface CyLayoutAlgorithm
public boolean supportsSelectedOnly()
supportsSelectedOnly
in interface CyLayoutAlgorithm
public void setSelectedOnly(boolean selectedOnly)
setSelectedOnly
in interface CyLayoutAlgorithm
selectedOnly
- boolean value that tells the layout algorithm whether to
only layout the selected nodespublic byte[] supportsNodeAttributes()
supportsNodeAttributes
in interface CyLayoutAlgorithm
public byte[] supportsEdgeAttributes()
supportsEdgeAttributes
in interface CyLayoutAlgorithm
public void setLayoutAttribute(String attributeName)
setLayoutAttribute
in interface CyLayoutAlgorithm
attributeName
- String with the name of the attribute to usepublic List<String> getInitialAttributeList()
getInitialAttributeList
in interface CyLayoutAlgorithm
public JPanel getSettingsPanel()
getSettingsPanel
in interface CyLayoutAlgorithm
public void revertSettings()
revertSettings
in interface CyLayoutAlgorithm
public void updateSettings()
updateSettings
in interface CyLayoutAlgorithm
public LayoutProperties getSettings()
getSettings
in interface CyLayoutAlgorithm
public void lockNodes(NodeView[] nodes)
lockNodes
in interface CyLayoutAlgorithm
nodes
- DOCUMENT ME!public void lockNode(NodeView v)
lockNode
in interface CyLayoutAlgorithm
v
- DOCUMENT ME!public void unlockNode(NodeView v)
unlockNode
in interface CyLayoutAlgorithm
v
- DOCUMENT ME!public void unlockAllNodes()
unlockAllNodes
in interface CyLayoutAlgorithm
public void halt()
halt
in interface CyLayoutAlgorithm
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |