<li><ahref="../../../com/mxgraph/layout/mxCircleLayout.html"title="class in com.mxgraph.layout"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polygon.html"title="class in com.mxgraph.layout"><spanclass="strong">Next Class</span></a></li>
<li><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ulclass="inheritance">
<li><ahref="../../../com/mxgraph/layout/mxGraphLayout.html"title="class in com.mxgraph.layout">com.mxgraph.layout.mxGraphLayout</a></li>
<li>
<ulclass="inheritance">
<li>com.mxgraph.layout.mxCompactTreeLayout</li>
</ul>
</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><ahref="../../../com/mxgraph/layout/mxIGraphLayout.html"title="interface in com.mxgraph.layout">mxIGraphLayout</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">mxCompactTreeLayout</span>
extends <ahref="../../../com/mxgraph/layout/mxGraphLayout.html"title="class in com.mxgraph.layout">mxGraphLayout</a></pre>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polygon.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polygon</a></strong></code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a></strong></code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a></strong></code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.WeightedCellSorter.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.WeightedCellSorter</a></strong></code>
<divclass="block">A utility class used to track cells whilst sorting occurs on the weighted
sum of their connected edges.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="field_summary">
<!---->
</a>
<h3>Field Summary</h3>
<tableclass="overviewSummary"border="0"cellpadding="3"cellspacing="0"summary="Field Summary table, listing fields, and an explanation">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true"title="class or interface in java.util">Set</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>></code></td>
<h3>Fields inherited from class com.mxgraph.layout.<ahref="../../../com/mxgraph/layout/mxGraphLayout.html"title="class in com.mxgraph.layout">mxGraphLayout</a></h3>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#mxCompactTreeLayout(com.mxgraph.view.mxGraph)">mxCompactTreeLayout</a></strong>(<ahref="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</a> graph)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colOne"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#mxCompactTreeLayout(com.mxgraph.view.mxGraph, boolean)">mxCompactTreeLayout</a></strong>(<ahref="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</a> graph,
boolean horizontal)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#mxCompactTreeLayout(com.mxgraph.view.mxGraph, boolean, boolean)">mxCompactTreeLayout</a></strong>(<ahref="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</a> graph,
<divclass="block">Adjust parent cells whose child geometries have changed.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>protected <ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#apply(com.mxgraph.layout.mxCompactTreeLayout.TreeNode, com.mxgraph.util.mxRectangle)">apply</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node,
<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> bounds)</code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#attachParent(com.mxgraph.layout.mxCompactTreeLayout.TreeNode, double)">attachParent</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node,
double height)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>protected <ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#bridge(com.mxgraph.layout.mxCompactTreeLayout.Polyline, double, double, com.mxgraph.layout.mxCompactTreeLayout.Polyline, double, double)">bridge</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a> line1,
double x1,
double y1,
<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a> line2,
double x2,
double y2)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a></code></td>
<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a> next)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>protected <ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#createNode(java.lang.Object)">createNode</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#dfs(java.lang.Object, java.lang.Object, java.util.Set)">dfs</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> parent,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true"title="class or interface in java.util">Set</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> visited)</code>
<divclass="block">Does a depth first search starting at the specified cell.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#execute(java.lang.Object)">execute</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> parent)</code>
<divclass="block">Executes the layout for the children of the specified parent.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#execute(java.lang.Object, java.lang.Object)">execute</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> parent,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> root)</code>
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#findTreeRoots(java.lang.Object, boolean)">findTreeRoots</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> parent,
boolean invert)</code>
<divclass="block">Returns all visible children in the given parent which do not have
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#isVertexIgnored(java.lang.Object)">isVertexIgnored</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> vertex)</code>
<divclass="block">Returns a boolean indicating if the given <mxCell> should be ignored as a
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#join(com.mxgraph.layout.mxCompactTreeLayout.TreeNode)">join</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node)</code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#layout(com.mxgraph.layout.mxCompactTreeLayout.TreeNode)">layout</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node)</code>
<divclass="block">Starts the actual compact tree layout algorithm
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#layoutLeaf(com.mxgraph.layout.mxCompactTreeLayout.TreeNode)">layoutLeaf</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node)</code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#localEdgeProcessing(com.mxgraph.layout.mxCompactTreeLayout.TreeNode)">localEdgeProcessing</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node)</code>
<divclass="block">Moves the specified node and all of its children by the given amount.</div>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#merge(com.mxgraph.layout.mxCompactTreeLayout.Polygon, com.mxgraph.layout.mxCompactTreeLayout.Polygon)">merge</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polygon.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polygon</a> p1,
<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polygon.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polygon</a> p2)</code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#moveNode(com.mxgraph.layout.mxCompactTreeLayout.TreeNode, double, double)">moveNode</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node,
double dx,
double dy)</code>
<divclass="block">Moves the specified node and all of its children by the given amount.</div>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#processNodeOutgoing(com.mxgraph.layout.mxCompactTreeLayout.TreeNode)">processNodeOutgoing</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node)</code>
<divclass="block">Separates the x position of edges as they connect to vertices</div>
<tdclass="colFirst"><code>protected <ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.html#verticalLayout(com.mxgraph.layout.mxCompactTreeLayout.TreeNode, java.lang.Object, double, double, com.mxgraph.util.mxRectangle)">verticalLayout</a></strong>(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> parent,
double x0,
double y0,
<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> bounds)</code> </td>
<h3>Methods inherited from class com.mxgraph.layout.<ahref="../../../com/mxgraph/layout/mxGraphLayout.html"title="class in com.mxgraph.layout">mxGraphLayout</a></h3>
<h3>Methods inherited from class java.lang.<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</a></code></li>
<divclass="block">Specifies the orientation of the layout. Default is true.</div>
</li>
</ul>
<aname="invert">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>invert</h4>
<pre>protected boolean invert</pre>
<divclass="block">Specifies if edge directions should be inverted. Default is false.</div>
</li>
</ul>
<aname="resizeParent">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>resizeParent</h4>
<pre>protected boolean resizeParent</pre>
<divclass="block">If the parents should be resized to match the width/height of the
children. Default is true.</div>
</li>
</ul>
<aname="groupPadding">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>groupPadding</h4>
<pre>protected int groupPadding</pre>
<divclass="block">Padding added to resized parents</div>
</li>
</ul>
<aname="parentsChanged">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>parentsChanged</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true"title="class or interface in java.util">Set</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> parentsChanged</pre>
<divclass="block">A set of the parents that need updating based on children
process as part of the layout</div>
</li>
</ul>
<aname="moveTree">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>moveTree</h4>
<pre>protected boolean moveTree</pre>
<divclass="block">Specifies if the tree should be moved to the top, left corner
if it is inside a top-level layer. Default is false.</div>
</li>
</ul>
<aname="resetEdges">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>resetEdges</h4>
<pre>protected boolean resetEdges</pre>
<divclass="block">Specifies if all edge points of traversed edges should be removed.
Default is true.</div>
</li>
</ul>
<aname="levelDistance">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>levelDistance</h4>
<pre>protected int levelDistance</pre>
<divclass="block">Holds the levelDistance. Default is 10.</div>
</li>
</ul>
<aname="nodeDistance">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>nodeDistance</h4>
<pre>protected int nodeDistance</pre>
<divclass="block">Holds the nodeDistance. Default is 20.</div>
</li>
</ul>
<aname="prefHozEdgeSep">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>prefHozEdgeSep</h4>
<pre>protected int prefHozEdgeSep</pre>
<divclass="block">The preferred horizontal distance between edges exiting a vertex</div>
</li>
</ul>
<aname="prefVertEdgeOff">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>prefVertEdgeOff</h4>
<pre>protected int prefVertEdgeOff</pre>
<divclass="block">The preferred vertical offset between edges exiting a vertex</div>
</li>
</ul>
<aname="minEdgeJetty">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>minEdgeJetty</h4>
<pre>protected int minEdgeJetty</pre>
<divclass="block">The minimum distance for an edge jetty from a vertex</div>
</li>
</ul>
<aname="channelBuffer">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>channelBuffer</h4>
<pre>protected int channelBuffer</pre>
<divclass="block">The size of the vertical buffer in the center of inter-rank channels
where edge control points should not be placed</div>
</li>
</ul>
<aname="edgeRouting">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>edgeRouting</h4>
<pre>protected boolean edgeRouting</pre>
<divclass="block">Whether or not to apply the internal tree edge routing</div>
<pre>public boolean isVertexIgnored(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> vertex)</pre>
<divclass="block">Returns a boolean indicating if the given <mxCell> should be ignored as a
vertex. This returns true if the cell has no connections.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/layout/mxGraphLayout.html#isVertexIgnored(java.lang.Object)">isVertexIgnored</a></code> in class <code><ahref="../../../com/mxgraph/layout/mxGraphLayout.html"title="class in com.mxgraph.layout">mxGraphLayout</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>vertex</code> - Object that represents the vertex to be tested.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Returns true if the vertex should be ignored.</dd></dl>
<pre>public void execute(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> parent)</pre>
<divclass="block"><strong>Description copied from interface: <code><ahref="../../../com/mxgraph/layout/mxIGraphLayout.html#execute(java.lang.Object)">mxIGraphLayout</a></code></strong></div>
<divclass="block">Executes the layout for the children of the specified parent.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/layout/mxIGraphLayout.html#execute(java.lang.Object)">execute</a></code> in interface <code><ahref="../../../com/mxgraph/layout/mxIGraphLayout.html"title="interface in com.mxgraph.layout">mxIGraphLayout</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/layout/mxGraphLayout.html#execute(java.lang.Object)">execute</a></code> in class <code><ahref="../../../com/mxgraph/layout/mxGraphLayout.html"title="class in com.mxgraph.layout">mxGraphLayout</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>parent</code> - Parent cell that contains the children to be layed out.</dd></dl>
<pre>public void execute(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> parent,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> root)</pre>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> findTreeRoots(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> parent,
boolean invert)</pre>
<divclass="block">Returns all visible children in the given parent which do not have
root due to invisible children or collapsed cells.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>parent</code> - Cell whose children should be checked.</dd><dd><code>invert</code> - Specifies if outgoing or incoming edges should be counted
for a tree root. If false then outgoing edges will be counted.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>List of tree roots in parent.</dd></dl>
<pre>protected void moveNode(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node,
double dx,
double dy)</pre>
<divclass="block">Moves the specified node and all of its children by the given amount.</div>
<pre>protected <ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> dfs(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> parent,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true"title="class or interface in java.util">Set</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> visited)</pre>
<divclass="block">Does a depth first search starting at the specified cell.
<pre>protected void layout(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node)</pre>
<divclass="block">Starts the actual compact tree layout algorithm
<pre>protected <ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> horizontalLayout(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node,
double x0,
double y0,
<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> bounds)</pre>
<pre>protected <ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> verticalLayout(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> parent,
double x0,
double y0,
<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> bounds)</pre>
<pre>protected void attachParent(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node,
<pre>protected void layoutLeaf(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node)</pre>
<pre>protected double join(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node)</pre>
<pre>protected double merge(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polygon.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polygon</a> p1,
<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polygon.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polygon</a> p2)</pre>
<pre>protected <ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a> bridge(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a> line1,
double x1,
double y1,
<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a> line2,
double x2,
double y2)</pre>
</li>
</ul>
<aname="createNode(java.lang.Object)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>createNode</h4>
<pre>protected <ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> createNode(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</pre>
<pre>protected <ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> apply(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node,
<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> bounds)</pre>
<pre>protected <ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a> createLine(double dx,
double dy,
<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polyline.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.Polyline</a> next)</pre>
<pre>protected void localEdgeProcessing(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node)</pre>
<divclass="block">Moves the specified node and all of its children by the given amount.</div>
<pre>protected void processNodeOutgoing(<ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</a> node)</pre>
<divclass="block">Separates the x position of edges as they connect to vertices</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>node</code> - the root node of the tree</dd></dl>
<li><ahref="../../../com/mxgraph/layout/mxCircleLayout.html"title="class in com.mxgraph.layout"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../com/mxgraph/layout/mxCompactTreeLayout.Polygon.html"title="class in com.mxgraph.layout"><spanclass="strong">Next Class</span></a></li>