cytoscape.foo
Class GraphConverter2

java.lang.Object
  extended by cytoscape.foo.GraphConverter2

public final class GraphConverter2
extends Object


Method Summary
static cytoscape.graph.layout.algorithm.MutablePolyEdgeGraphLayout getGraphReference(double percentBorder, boolean preserveEdgeAnchors, boolean onlySelectedNodesMovable)
          Returns a representation of Cytoscape's current network view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGraphReference

public static cytoscape.graph.layout.algorithm.MutablePolyEdgeGraphLayout getGraphReference(double percentBorder,
                                                                                            boolean preserveEdgeAnchors,
                                                                                            boolean onlySelectedNodesMovable)
Returns a representation of Cytoscape's current network view. Returns a MutablePolyEdgeGraphLayout, which, when mutated, has a direct effect on the underlying Cytoscape network view. You'd sure as heck better be using the returned object from the AWT event dispatch thread! Better yet, lock the Cytoscape desktop somehow (with a modal dialog for example) while using this returned object. Movable nodes are defined to be selected nodes in Cytoscape - if no nodes are selected then all nodes are movable. If selected node information changes while we have a reference to this return object, then the movability of corresponding node also changes. This is one reason why it's important to lock the Cytoscape desktop while operating on this return object.