treemap
Class MapItem

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

public class MapItem
extends java.lang.Object
implements Mappable

A simple implementation of the Mappable interface.


Constructor Summary
MapItem()
           
MapItem(double size, int order)
           
 
Method Summary
 void draw()
           
 Rect getBounds()
           
 int getDepth()
           
 int getOrder()
           
 double getSize()
           
 void setBounds(double x, double y, double w, double h)
           
 void setBounds(Rect bounds)
           
 void setDepth(int depth)
           
 void setOrder(int order)
           
 void setSize(double size)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapItem

public MapItem()

MapItem

public MapItem(double size,
               int order)
Method Detail

getSize

public double getSize()
Specified by:
getSize in interface Mappable

setSize

public void setSize(double size)
Specified by:
setSize in interface Mappable

getBounds

public Rect getBounds()
Specified by:
getBounds in interface Mappable

setBounds

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

setBounds

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

getOrder

public int getOrder()
Specified by:
getOrder in interface Mappable

setOrder

public void setOrder(int order)
Specified by:
setOrder in interface Mappable

setDepth

public void setDepth(int depth)
Specified by:
setDepth in interface Mappable

getDepth

public int getDepth()
Specified by:
getDepth in interface Mappable

draw

public void draw()
Specified by:
draw in interface Mappable