VNCj

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.


Field Summary
 int height
           
 int width
           
 int x
           
 int y
           
 
Constructor Summary
Rectangle(int x, int y, int width, int height)
           
 
Method Summary
 boolean contains(Point p)
           
 boolean contains(Rectangle r)
           
 Point getLocation()
           
 Rectangle intersection(Rectangle r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public int x

y

public int y

width

public int width

height

public int height
Constructor Detail

Rectangle

public Rectangle(int x,
                 int y,
                 int width,
                 int height)
Method Detail

getLocation

public Point getLocation()

intersection

public Rectangle intersection(Rectangle r)

contains

public boolean contains(Point p)

contains

public boolean contains(Rectangle r)

VNCj