|
Cytoscape 2.8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcytoscape.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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutAdapter()
| Method Detail |
|---|
public void doLayout()
doLayout in interface CyLayoutAlgorithmpublic void doLayout(CyNetworkView networkView)
doLayout in interface CyLayoutAlgorithmnetworkView - the CyNetworkView on which to perform the layout
public abstract void doLayout(CyNetworkView networkView,
TaskMonitor monitor)
doLayout in interface CyLayoutAlgorithmnetworkView - the CyNetworkView on which to perform the layoutmonitor - the task monitor to usepublic String getName()
getName in interface CyLayoutAlgorithmpublic boolean supportsSelectedOnly()
supportsSelectedOnly in interface CyLayoutAlgorithmpublic void setSelectedOnly(boolean selectedOnly)
setSelectedOnly in interface CyLayoutAlgorithmselectedOnly - boolean value that tells the layout algorithm whether to
only layout the selected nodespublic byte[] supportsNodeAttributes()
supportsNodeAttributes in interface CyLayoutAlgorithmpublic byte[] supportsEdgeAttributes()
supportsEdgeAttributes in interface CyLayoutAlgorithmpublic void setLayoutAttribute(String attributeName)
setLayoutAttribute in interface CyLayoutAlgorithmattributeName - String with the name of the attribute to usepublic List<String> getInitialAttributeList()
getInitialAttributeList in interface CyLayoutAlgorithmpublic JPanel getSettingsPanel()
getSettingsPanel in interface CyLayoutAlgorithmpublic void revertSettings()
revertSettings in interface CyLayoutAlgorithmpublic void updateSettings()
updateSettings in interface CyLayoutAlgorithmpublic LayoutProperties getSettings()
getSettings in interface CyLayoutAlgorithmpublic void lockNodes(NodeView[] nodes)
lockNodes in interface CyLayoutAlgorithmnodes - DOCUMENT ME!public void lockNode(NodeView v)
lockNode in interface CyLayoutAlgorithmv - DOCUMENT ME!public void unlockNode(NodeView v)
unlockNode in interface CyLayoutAlgorithmv - DOCUMENT ME!public void unlockAllNodes()
unlockAllNodes in interface CyLayoutAlgorithmpublic void halt()
halt in interface CyLayoutAlgorithm
|
Cytoscape 2.8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||