edu.columbia.cs.coms4701.geometry
Class DiscreteRectangle

java.lang.Object
  extended by edu.columbia.cs.coms4701.geometry.AbstractRectangle<java.lang.Integer>
      extended by edu.columbia.cs.coms4701.geometry.DiscreteRectangle
All Implemented Interfaces:
Rectangle2D<java.lang.Integer>

public class DiscreteRectangle
extends AbstractRectangle<java.lang.Integer>

Represents a rectangle in a 2-dimensional lattice over the integers.

Version:
0.1

User: aaron Date: Aug 25, 2006 Time: 12:24:54 PM

Author:
aaron@cs
See Also:
Rectangle2D

Field Summary
 
Fields inherited from class edu.columbia.cs.coms4701.geometry.AbstractRectangle
origin, size
 
Constructor Summary
DiscreteRectangle(java.lang.Integer x, java.lang.Integer y, java.lang.Integer height, java.lang.Integer width)
          Constructs a new rectangle with the given origin and size
DiscreteRectangle(Point2D<java.lang.Integer> origin, Size2D<java.lang.Integer> size)
          Constructs a new rectangle with the given origin and size
 
Method Summary
 
Methods inherited from class edu.columbia.cs.coms4701.geometry.AbstractRectangle
getOrigin, getSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiscreteRectangle

public DiscreteRectangle(Point2D<java.lang.Integer> origin,
                         Size2D<java.lang.Integer> size)
Constructs a new rectangle with the given origin and size

Parameters:
origin - the location of the lower-left corner of the rectangle
size -

DiscreteRectangle

public DiscreteRectangle(java.lang.Integer x,
                         java.lang.Integer y,
                         java.lang.Integer height,
                         java.lang.Integer width)
Constructs a new rectangle with the given origin and size

Parameters:
x -
y -
height -
width -