public class Rectangle extends Object implements Cloneable, RectangleImmutable
| Constructor and Description |
|---|
Rectangle() |
Rectangle(int x,
int y,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
Object |
cloneMutable() |
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() |
public Rectangle()
public Rectangle(int x,
int y,
int width,
int height)
public Object cloneMutable()
cloneMutable in interface com.jogamp.common.type.WriteCloneablepublic final int getX()
getX in interface RectangleImmutablepublic final int getY()
getY in interface RectangleImmutablepublic final int getWidth()
getWidth in interface RectangleImmutablepublic final int getHeight()
getHeight in interface RectangleImmutablepublic void setX(int x)
public void setY(int y)
public void setWidth(int width)
public void setHeight(int height)
public boolean equals(Object obj)
RectangleImmutableRectangle are equal if the four integer values
of the fields y, x,
height, and width are all equal.equals in interface RectangleImmutableequals in class Objecttrue if the two rectangles are equal;
otherwise false.public int hashCode()
hashCode in interface RectangleImmutablehashCode in class ObjectCopyright 2010 JogAmp Community.