net.sf.jtreemap.swing
Class SplitSquarified

java.lang.Object
  extended by net.sf.jtreemap.swing.SplitStrategy
      extended by net.sf.jtreemap.swing.SplitSquarified
All Implemented Interfaces:
java.io.Serializable

public class SplitSquarified
extends SplitStrategy

The Squarified split strategy

See Also:
Serialized Form
 

Constructor Summary
SplitSquarified()
           
 
Method Summary
protected  void calculatePositionsRec(int x0, int y0, int w0, int h0, double weight0, java.util.Vector<TreeMapNode> v)
           
 void splitElements(java.util.Vector<TreeMapNode> v, java.util.Vector<TreeMapNode> v1, java.util.Vector<TreeMapNode> v2)
          split the elements of a JTreeMap.
 
Methods inherited from class net.sf.jtreemap.swing.SplitStrategy
calculatePositions, sortVector, sumWeight, workOutWeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitSquarified

public SplitSquarified()
Method Detail

splitElements

public void splitElements(java.util.Vector<TreeMapNode> v,
                          java.util.Vector<TreeMapNode> v1,
                          java.util.Vector<TreeMapNode> v2)
Description copied from class: SplitStrategy
split the elements of a JTreeMap.

Specified by:
splitElements in class SplitStrategy
Parameters:
v - Vector with the elements to split (arg IN)
v1 - first Vector of the split (arg OUT)
v2 - second Vector of the split (arg OUT)

calculatePositionsRec

protected void calculatePositionsRec(int x0,
                                     int y0,
                                     int w0,
                                     int h0,
                                     double weight0,
                                     java.util.Vector<TreeMapNode> v)
Overrides:
calculatePositionsRec in class SplitStrategy