treemap
Class SimpleMapModel
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleMapModel
public SimpleMapModel()
SimpleMapModel
public SimpleMapModel(Mappable[] items,
Rect bounds)
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)