Rect

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.csporter.helpers.Struct, java.io.Serializable

public final class Rect implements Struct<Rect>, Serializable

A class to represent the rectangle

Constructors

ConstructorDescription
Rect(int x, int y, int width, int height)Constructor of class Rect
Rect()

Methods

MethodDescription
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:

ParameterTypeDescription
xint
yint
widthint
heightint

Rect()

public Rect()

clone()

public Rect clone()

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:

ParameterTypeDescription
xint
yint

Returns: boolean

copyFrom(Rect src)

public void copyFrom(Rect src)

Parameters:

ParameterTypeDescription
srcRect

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean

getBottom()

public int getBottom()

Gets the bottom of the rectangle

Returns: int

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getHeight()

public int getHeight()

Gets the height of the size

Returns: int

getLeft()

public int getLeft()

Gets the left of the rectangle

Returns: int

getRight()

public int getRight()

Gets the right of the rectangle

Returns: int

getTop()

public int getTop()

Gets the top of the rectangle

Returns: int

getWidth()

public int getWidth()

Gets the width of the size

Returns: int

getX()

public int getX()

Gets the x of the size

Returns: int

getY()

public int getY()

Gets the y of the size

Returns: int

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:

ParameterTypeDescription
valueintNew value

setWidth(int value)

public void setWidth(int value)

Sets the width of the size

Parameters:

ParameterTypeDescription
valueintNew value

setX(int value)

public void setX(int value)

Sets the x of the size

Parameters:

ParameterTypeDescription
valueintNew value

setY(int value)

public void setY(int value)

Sets the y of the size

Parameters:

ParameterTypeDescription
valueintNew value

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int