jgame
Class JGRectangle
java.lang.Object
jgame.JGRectangle
public class JGRectangle
- extends java.lang.Object
Minimal replacement of java.awt.Rectangle.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
public int x
y
public int y
width
public int width
height
public int height
JGRectangle
public JGRectangle()
JGRectangle
public JGRectangle(int x,
int y,
int width,
int height)
JGRectangle
public JGRectangle(JGRectangle rec)
copyFrom
public void copyFrom(JGRectangle src)
- Copy contents of source rectangle into this rectangle.
intersects
public boolean intersects(JGRectangle rec)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object