gnu.awt
Class Rectangle
java.lang.Object
|
+--gnu.awt.Rectangle
- public class Rectangle
- extends Object
This is a substitute for the java.awt.Rectangle
class.
Constructor Summary |
Rectangle(int x,
int y,
int width,
int height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
public int x
y
public int y
width
public int width
height
public int height
Rectangle
public Rectangle(int x,
int y,
int width,
int height)
getLocation
public Point getLocation()
intersection
public Rectangle intersection(Rectangle r)
contains
public boolean contains(Point p)
contains
public boolean contains(Rectangle r)