javax.media.nativewindow.util
Class Rectangle
java.lang.Object
javax.media.nativewindow.util.Rectangle
- All Implemented Interfaces:
- WriteCloneable, Cloneable, RectangleImmutable
public class Rectangle
- extends Object
- implements Cloneable, RectangleImmutable
Rectangle
public Rectangle()
Rectangle
public Rectangle(int x,
int y,
int width,
int height)
cloneMutable
public Object cloneMutable()
- Specified by:
cloneMutable in interface WriteCloneable
getX
public final int getX()
- Specified by:
getX in interface RectangleImmutable
getY
public final int getY()
- Specified by:
getY in interface RectangleImmutable
getWidth
public final int getWidth()
- Specified by:
getWidth in interface RectangleImmutable
getHeight
public final int getHeight()
- Specified by:
getHeight in interface RectangleImmutable
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:
RectangleImmutable
- 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 RectangleImmutable- Overrides:
equals in class Object
- Returns:
true if the two rectangles are equal;
otherwise false.
hashCode
public int hashCode()
- Specified by:
hashCode in interface RectangleImmutable- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright 2010 JogAmp Community.