public final class Rect extends java.lang.Object implements Struct<Rect>, java.io.Serializable
| Constructor and Description |
|---|
Rect() |
Rect(int x,
int y,
int width,
int height)
Constructor of class
Rect |
| Modifier and Type | Method and Description |
|---|---|
Rect |
clone()
Clone current instance
|
boolean |
contains(int x,
int y)
Return true if the given point is inside the rectangle.
|
void |
copyFrom(Rect src)
Copy internal state from argument t
|
boolean |
equals(java.lang.Object obj) |
int |
getBottom()
Gets the bottom of the rectangle
|
int |
getHeight()
Gets the height of the size
|
int |
getLeft()
Gets the left of the rectangle
|
int |
getRight()
Gets the right of the rectangle
|
int |
getTop()
Gets the top of the rectangle
|
int |
getWidth()
Gets the width of the size
|
int |
getX()
Gets the x of the size
|
int |
getY()
Gets the y of the size
|
int |
hashCode() |
void |
setHeight(int value)
Sets the height of the size
|
void |
setWidth(int value)
Sets the width of the size
|
void |
setX(int value)
Sets the x of the size
|
void |
setY(int value)
Sets the y of the size
|
public Rect(int x,
int y,
int width,
int height)
Rectpublic Rect()
public int getWidth()
public void setWidth(int value)
value - New valuepublic int getHeight()
public void setHeight(int value)
value - New valuepublic int getX()
public void setX(int value)
value - New valuepublic int getY()
public void setY(int value)
value - New valuepublic int getLeft()
public int getRight()
public int getTop()
public int getBottom()
public boolean contains(int x,
int y)
public void copyFrom(Rect src)
Structpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object