treemap
Class RecursiveTreemap

java.lang.Object
  extended by treemap.SimpleMapItem
      extended by treemap.RecursiveTreemap
All Implemented Interfaces:
Mappable

public class RecursiveTreemap
extends SimpleMapItem

Class that simplifies a TreeMap layout. The constructor takes a MapModel object plus boundary coordinates. The class extends SimpleMapItem, so that TreeMap objects can be placed recursively.
This class was not part of the original TreeMap library distribution.

Author:
Ben Fry

Field Summary
 
Fields inherited from class treemap.SimpleMapItem
h, w, x, y
 
Constructor Summary
RecursiveTreemap(MapModel model, double x, double y, double w, double h)
           
 
Method Summary
 void draw()
           
 void setBounds(double x, double y, double w, double h)
           
 void setBounds(Rect bounds)
           
 void setLayout(MapLayout algorithm)
           
 void updateLayout()
           
 
Methods inherited from class treemap.SimpleMapItem
getBounds, getDepth, getOrder, getSize, incrementSize, setDepth, setOrder, setSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecursiveTreemap

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

setLayout

public void setLayout(MapLayout algorithm)

updateLayout

public void updateLayout()

setBounds

public void setBounds(Rect bounds)
Specified by:
setBounds in interface Mappable
Overrides:
setBounds in class SimpleMapItem

setBounds

public void setBounds(double x,
                      double y,
                      double w,
                      double h)
Specified by:
setBounds in interface Mappable
Overrides:
setBounds in class SimpleMapItem

draw

public void draw()
Specified by:
draw in interface Mappable
Overrides:
draw in class SimpleMapItem