ImageGearJava Project > com.accusoft.imagegear.core.shapes Package : ImGearRectangle Class |
The following tables list the members exposed by ImGearRectangle.
Name | Description | |
---|---|---|
![]() | ImGearRectangle Constructor | Overloaded. |
Name | Description | |
---|---|---|
![]() | contains | Checks if the specified point's coordinates are inside of the rectangle. |
![]() | copyFrom | Copies the specified ImGearRectangle object into this instance of the ImGearRectangle class. |
![]() | empty | Sets all numeric properties of the rectangle to their initial values. |
![]() | getBottom | Gets the y-coordinate of the lower-right corner of the rectangle.
|
![]() | getHeight | Gets the height of the rectangle.
Note: The Height and Width properties assume that the rectangle is being used with the endpoint-inclusive semantics. Using endpoint-inclusive semantics, a rectangle with left, top, right, and bottom coordinates all equal to 0 is one pixel wide and one pixel tall. So, for example, the getWidth() value is calculated as Right - Left + 1. ImGearARTMarktimes rectangles are used with endpoint-exclusive semantics, in which the width of the rectangle should be calculated as Right - Left. In this case, the Width and Height properties should not be used. |
![]() | getLeft | Gets the x-coordinate of the upper-left corner of the rectangle.
|
![]() | getRight | Gets the x-coordinate of the lower-right corner of the rectangle.
|
![]() | getTop | Gets the y-coordinate of the upper-left corner of the rectangle.
|
![]() | getWidth | Gets the width of the rectangle.
Note: The Height and Width properties assume that the rectangle is being used with endpoint-inclusive semantics. Using endpoint-inclusive semantics, a rectangle with left, top, right, and bottom coordinates all equal to 0 is one pixel wide and one pixel tall. So, for example, the getWidth() value is calculated as Right - Left + 1. ImGearARTMarktimes rectangles are used with endpoint-exclusive semantics, in which the width of the rectangle should be calculated as Right - Left. In this case, the Width and Height properties should not be used. |
![]() | intersect | Replaces this rectangle with the intersection of itself and another rectangle. |
![]() | isEmpty | Tests whether all numeric properties of the rectangle are set to their initial values. |
![]() | isWellFormed | Tests whether the rectangle is valid. |
![]() | join | Changes the rectangle's points to contain the specified point. |
![]() | offset | Shifts the rectangle points by the specified shiftX and shiftY values. |
![]() | setBottom | Sets the y-coordinate of the lower-right corner of the rectangle.
|
![]() | setLeft | Sets the x-coordinate of the upper-left corner of the rectangle.
|
![]() | setRight | Sets the x-coordinate of the lower-right corner of the rectangle.
|
![]() | setTop | Sets the y-coordinate of the upper-left corner of the rectangle.
|