treemap
Class SimpleMapModel

java.lang.Object
  extended by treemap.SimpleMapModel
All Implemented Interfaces:
MapModel

public class SimpleMapModel
extends java.lang.Object
implements MapModel

A simple implementation of the MapModel interface.
This class is modified since the original TreeMap library distribution.

Author:
Ben Fry

Constructor Summary
SimpleMapModel()
           
SimpleMapModel(Mappable[] items, Rect bounds)
           
 
Method Summary
 Rect getBounds()
           
 Mappable[] getItems()
          Get the list of items in this model.
 void setBounds(Rect bounds)
           
 void setItems(Mappable[] items)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMapModel

public SimpleMapModel()

SimpleMapModel

public SimpleMapModel(Mappable[] items,
                      Rect bounds)
Method Detail

setBounds

public void setBounds(Rect bounds)

getBounds

public Rect getBounds()

getItems

public Mappable[] getItems()
Description copied from interface: MapModel
Get the list of items in this model.

Specified by:
getItems in interface MapModel
Returns:
An array of the Mappable objects in this MapModel.

setItems

public void setItems(Mappable[] items)