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.WriteCloneable
public final int getX()
getX
in interface RectangleImmutable
public final int getY()
getY
in interface RectangleImmutable
public final int getWidth()
getWidth
in interface RectangleImmutable
public final int getHeight()
getHeight
in interface RectangleImmutable
public void setX(int x)
public void setY(int y)
public void setWidth(int width)
public void setHeight(int height)
public boolean equals(Object obj)
RectangleImmutable
Rectangle
are equal if the four integer values
of the fields y
, x
,
height
, and width
are all equal.equals
in interface RectangleImmutable
equals
in class Object
true
if the two rectangles are equal;
otherwise false
.public int hashCode()
hashCode
in interface RectangleImmutable
hashCode
in class Object
Copyright 2010 JogAmp Community.