treemap
Class Treemap

java.lang.Object
  extended by treemap.Treemap

public class Treemap
extends java.lang.Object

Class that simplifies a Treemap layout. The constructor takes a MapModel object plus boundary coordinates. This displays a treemap for only a single layer.
This class was not part of the original TreeMap library distribution.

Author:
Ben Fry

Constructor Summary
Treemap(MapModel model, double x, double y, double w, double h)
           
 
Method Summary
 void draw()
           
 void setLayout(MapLayout algorithm)
           
 void updateLayout()
           
 void updateLayout(double x, double y, double w, double h)
          Convenience function to call setBounds() and then updateLayout().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Treemap

public Treemap(MapModel model,
               double x,
               double y,
               double w,
               double h)
Method Detail

setLayout

public void setLayout(MapLayout algorithm)

updateLayout

public void updateLayout()

updateLayout

public void updateLayout(double x,
                         double y,
                         double w,
                         double h)
Convenience function to call setBounds() and then updateLayout().


draw

public void draw()