Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jgame
Class JGRectangle

    java.lang.Object
      jgame.JGRectangle

    public class JGRectangle

extends java.lang.Object

Minimal replacement of java.awt.Rectangle.

Field Summary
`int` | `height`
`int` | `width`
`int` | `x`
`int` | `y`

Constructor Summary
`JGRectangle()`
`JGRectangle(int x, int y, int width, int height)`
`JGRectangle(JGRectangle rec)`

Method Summary
`void` | `copyFrom(JGRectangle src)` Copy contents of source rectangle into this rectangle.
`boolean` | `intersects(JGRectangle rec)`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### x

    public int x

### y

    public int y

### width

    public int width

### height

    public int height

Constructor Detail

### JGRectangle

    public JGRectangle()

### JGRectangle

    public JGRectangle(int x,
                       int y,
                       int width,
                       int height)

### JGRectangle

    public JGRectangle(JGRectangle rec)

Method Detail

### 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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD