Rect
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class Rect implements Struct<Rect>, Serializable
A class to represent the rectangle
Constructors
| Constructor | Description |
|---|---|
| Rect(int x, int y, int width, int height) | Constructor of class Rect |
| Rect() |
Methods
| Method | Description |
|---|---|
| clone() | |
| contains(int x, int y) | Return true if the given point is inside the rectangle. |
| copyFrom(Rect src) | |
| equals(Object obj) | |
| getBottom() | Gets the bottom of the rectangle |
| getClass() | |
| getHeight() | Gets the height of the size |
| getLeft() | Gets the left of the rectangle |
| getRight() | Gets the right of the rectangle |
| getTop() | Gets the top of the rectangle |
| getWidth() | Gets the width of the size |
| getX() | Gets the x of the size |
| getY() | Gets the y of the size |
| hashCode() | |
| notify() | |
| notifyAll() | |
| setHeight(int value) | Sets the height of the size |
| setWidth(int value) | Sets the width of the size |
| setX(int value) | Sets the x of the size |
| setY(int value) | Sets the y of the size |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
Rect(int x, int y, int width, int height)
public Rect(int x, int y, int width, int height)
Constructor of class Rect
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | int | |
| y | int | |
| width | int | |
| height | int |
Rect()
public Rect()
clone()
public Rect clone()
Clone current instance
Returns: Rect
contains(int x, int y)
public boolean contains(int x, int y)
Return true if the given point is inside the rectangle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | int | |
| y | int |
Returns: boolean
copyFrom(Rect src)
public void copyFrom(Rect src)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| src | Rect |
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
getBottom()
public int getBottom()
Gets the bottom of the rectangle
Returns: int - the bottom of the rectangle
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getHeight()
public int getHeight()
Gets the height of the size
Returns: int - the height of the size
getLeft()
public int getLeft()
Gets the left of the rectangle
Returns: int - the left of the rectangle
getRight()
public int getRight()
Gets the right of the rectangle
Returns: int - the right of the rectangle
getTop()
public int getTop()
Gets the top of the rectangle
Returns: int - the top of the rectangle
getWidth()
public int getWidth()
Gets the width of the size
Returns: int - the width of the size
getX()
public int getX()
Gets the x of the size
Returns: int - the x of the size
getY()
public int getY()
Gets the y of the size
Returns: int - the y of the size
hashCode()
public int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setHeight(int value)
public void setHeight(int value)
Sets the height of the size
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | New value |
setWidth(int value)
public void setWidth(int value)
Sets the width of the size
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | New value |
setX(int value)
public void setX(int value)
Sets the x of the size
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | New value |
setY(int value)
public void setY(int value)
Sets the y of the size
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | New value |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |