java.awt
Class Rectangle
java.lang.Object
|
+--java.awt.Rectangle
- public class Rectangle
- extends java.lang.Object
|
Constructor Summary |
Rectangle(int x,
int y,
int width,
int height)
|
| Methods inherited from class java.lang.Object |
equals, 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)
add
public void add(Rectangle r)
contains
public boolean contains(Point p)
contains
public boolean contains(int px,
int py)
intersects
public boolean intersects(Rectangle r)