drawableShapes
Class DrawableRTree

java.lang.Object
  extended by drawableShapes.Drawable
      extended by drawableShapes.DrawableShape
          extended by drawableShapes.DrawableRTree
All Implemented Interfaces:
ShapeInt

public class DrawableRTree
extends DrawableShape

This class draws a recursive tree. It wedges Program #1's RTree into Program #2's drawable shape setup.

Author:
wtkrieger

Field Summary
 
Fields inherited from class drawableShapes.DrawableShape
theShape
 
Fields inherited from class drawableShapes.Drawable
borderColor, interiorColor, pos
 
Constructor Summary
DrawableRTree()
          Default ctor for RTree
DrawableRTree(int order, java.awt.Point poi, java.awt.Color border, java.awt.Color inter)
          Creates a new instance of DrawableRTree
 
Method Summary
 void drawMe(java.awt.Graphics g)
          This method makes the RTree drawable.
 DrawableShape factory()
           
 
Methods inherited from class drawableShapes.DrawableShape
computeArea, computePerimeter, getName, randomShapeData, readShapeData
 
Methods inherited from class drawableShapes.Drawable
setBorderColor, setInteriorColor, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrawableRTree

public DrawableRTree(int order,
                     java.awt.Point poi,
                     java.awt.Color border,
                     java.awt.Color inter)
Creates a new instance of DrawableRTree


DrawableRTree

public DrawableRTree()
Default ctor for RTree

Method Detail

factory

public DrawableShape factory()
Specified by:
factory in class DrawableShape

drawMe

public void drawMe(java.awt.Graphics g)
This method makes the RTree drawable. It draws the RTree on the given Graphics object.

Specified by:
drawMe in class Drawable
Parameters:
g - The RTree is drawn on this Graphics object.