jimmc.treepar
Class BoundsRectangle

java.lang.Object
  |
  +--java.awt.geom.RectangularShape
        |
        +--java.awt.geom.Rectangle2D
              |
              +--java.awt.Rectangle
                    |
                    +--jimmc.treepar.BoundsRectangle
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, java.awt.Shape

public class BoundsRectangle
extends java.awt.Rectangle

A class to simplify calculating a bounding box.

See Also:
Serialized Form

Inner classes inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Fields inherited from class java.awt.Rectangle
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
BoundsRectangle()
          Create an empty bounds box (everything 0).
BoundsRectangle(java.awt.Rectangle r)
          Create a copy of a BoundsRectangle.
 
Method Summary
 void add(int px, int py)
          Add a point to the bounds.
 
Methods inherited from class java.awt.Rectangle
add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

BoundsRectangle

public BoundsRectangle()
Create an empty bounds box (everything 0).

BoundsRectangle

public BoundsRectangle(java.awt.Rectangle r)
Create a copy of a BoundsRectangle.
Method Detail

add

public void add(int px,
                int py)
Add a point to the bounds.
Overrides:
add in class java.awt.Rectangle