javax.media.nativewindow.util
Class Rectangle

java.lang.Object
  extended by javax.media.nativewindow.util.Rectangle
All Implemented Interfaces:
Cloneable, RectangleReadOnly

public class Rectangle
extends Object
implements Cloneable, RectangleReadOnly


Constructor Summary
Rectangle()
           
Rectangle(int x, int y, int width, int height)
           
 
Method Summary
protected  Object clone()
           
 boolean equals(Object obj)
          Checks whether two rect objects are equal.
 int getHeight()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 int hashCode()
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 void setX(int x)
           
 void setY(int y)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rectangle

public Rectangle()

Rectangle

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

clone

protected Object clone()
Overrides:
clone in class Object

getX

public int getX()
Specified by:
getX in interface RectangleReadOnly

getY

public int getY()
Specified by:
getY in interface RectangleReadOnly

getWidth

public int getWidth()
Specified by:
getWidth in interface RectangleReadOnly

getHeight

public int getHeight()
Specified by:
getHeight in interface RectangleReadOnly

setX

public void setX(int x)

setY

public void setY(int y)

setWidth

public void setWidth(int width)

setHeight

public void setHeight(int height)

equals

public boolean equals(Object obj)
Description copied from interface: RectangleReadOnly
Checks whether two rect objects are equal. Two instances of Rectangle are equal if the four integer values of the fields y, x, height, and width are all equal.

Specified by:
equals in interface RectangleReadOnly
Overrides:
equals in class Object
Returns:
true if the two rectangles are equal; otherwise false.

hashCode

public int hashCode()
Specified by:
hashCode in interface RectangleReadOnly
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright 2010 JogAmp Community.