<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>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.layout.mxCompactTreeLayout.WeightedCellSorter</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B><DD><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Comparable.html?is-external=true"title="class or interface in java.lang">Comparable</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>></DD>
</DL>
<DL>
<DT><B>Enclosing class:</B><DD><AHREF="../../../com/mxgraph/layout/mxCompactTreeLayout.html"title="class in com.mxgraph.layout">mxCompactTreeLayout</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>protected class <B>mxCompactTreeLayout.WeightedCellSorter</B><DT>extends <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><DT>implements <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Comparable.html?is-external=true"title="class or interface in java.lang">Comparable</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>></DL>
</PRE>
<P>
A utility class used to track cells whilst sorting occurs on the weighted
sum of their connected edges. Does not violate (x.compareTo(y)==0) ==
<CODE> <AHREF="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/layout/mxCompactTreeLayout.WeightedCellSorter.html#mxCompactTreeLayout.WeightedCellSorter(com.mxgraph.layout.mxCompactTreeLayout.TreeNode, int)">mxCompactTreeLayout.WeightedCellSorter</A></B>(<AHREF="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</A> cell,
<TD><CODE><B><AHREF="../../../com/mxgraph/layout/mxCompactTreeLayout.WeightedCellSorter.html#compareTo(java.lang.Object)">compareTo</A></B>(<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> arg0)</CODE>
<BR>
comparator on the medianValue</TD>
<THALIGN="left"><B>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></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><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></TD>
<DD>Whether or not this cell has been visited in the current assignment
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="cell"><!----></A><H3>
cell</H3>
<PRE>
public <AHREF="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</A><B>cell</B></PRE>
<DL>
<DD>The cell whose median value is being calculated
public <B>mxCompactTreeLayout.WeightedCellSorter</B>(<AHREF="../../../com/mxgraph/layout/mxCompactTreeLayout.TreeNode.html"title="class in com.mxgraph.layout">mxCompactTreeLayout.TreeNode</A> cell,
public int <B>compareTo</B>(<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> arg0)</PRE>
<DL>
<DD>comparator on the medianValue
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Comparable.html?is-external=true#compareTo(T)"title="class or interface in java.lang">compareTo</A></CODE> in interface <CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Comparable.html?is-external=true"title="class or interface in java.lang">Comparable</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></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>arg0</CODE> - the object to be compared to
<DT><B>Returns:</B><DD>the standard return you would expect when comparing two