treemap
Class Treemap
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Treemap
public Treemap(MapModel model,
double x,
double y,
double w,
double h)
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()