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