Aspose.Barcode for Python via Java Generation and Recognition API docs
|
A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's upper-left point in the coordinate space, its width, and its height. More...
Inherits BaseJavaClass.
Public Member Functions | |
None | __init__ (self, int x, int y, int width, int height) |
Rectangle constructor. More... | |
bool | equals (self, Rectangle obj) |
int | getBottom (self) |
Gets the y-coordinate that is the sum of the Y and Height property values of self Rectangle class. More... | |
int | getHeight (self) |
Returns the height of the bounding Rectangle in double precision. More... | |
int | getLeft (self) |
Gets the x-coordinate of the left edge of self Rectangle class. More... | |
int | getRight (self) |
Gets the x-coordinate that is the sum of X and Width property values of self Rectangle class. More... | |
int | getTop (self) |
Gets the y-coordinate of the top edge of self Rectangle class. More... | |
int | getWidth (self) |
Returns the width of the bounding Rectangle in double precision. More... | |
int | getX (self) |
Returns the X coordinate of the bounding Rectangle in double precision. More... | |
int | getY (self) |
Returns the Y coordinate of the bounding Rectangle in double precision. More... | |
None | init (self) |
bool | intersectsWithInclusive (self, Rectangle rectangle) |
Determines if self rectangle intersects with rect. More... | |
bool | isEmpty (self) |
str | toString (self) |
Public Member Functions inherited from BaseJavaClass | |
None | __init__ (self, javaClass) |
def | getJavaClass (self) |
str | getJavaClassName (self) |
bool | isNull (self) |
None | printJavaClassName (self) |
None | setJavaClass (self, javaClass) |
Static Public Member Functions | |
Rectangle | construct (arg) |
Rectangle | fromLTRB (int left, int top, int right, int bottom) |
FromLTRB Shared Method Produces a Rectangle class from left, top, right, and bottom coordinates. More... | |
Rectangle | intersect (Rectangle a, Rectangle b) |
Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles. More... | |
Public Attributes | |
javaClass | |
Public Attributes inherited from BaseJavaClass | |
javaClass | |
javaClassName | |
Static Public Attributes | |
string | javaClassName = "java.awt.Rectangle" |
A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's upper-left point in the coordinate space, its width, and its height.
None __init__ | ( | self, | |
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
Rectangle constructor.
x | The x-coordinate of the upper-left corner of the rectangle. |
y | The y-coordinate of the upper-left corner of the rectangle. |
width | The width of the rectangle. |
height | The height of the rectangle. |
|
static |
bool equals | ( | self, | |
Rectangle | obj | ||
) |
|
static |
FromLTRB Shared Method Produces a Rectangle class from left, top, right, and bottom coordinates.
int getBottom | ( | self | ) |
int getHeight | ( | self | ) |
int getLeft | ( | self | ) |
int getRight | ( | self | ) |
int getTop | ( | self | ) |
int getWidth | ( | self | ) |
int getX | ( | self | ) |
int getY | ( | self | ) |
None init | ( | self | ) |
Reimplemented from BaseJavaClass.
Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles.
Returns None if there is no intersection.
bool intersectsWithInclusive | ( | self, | |
Rectangle | rectangle | ||
) |
Determines if self rectangle intersects with rect.
rectangle |
bool isEmpty | ( | self | ) |
str toString | ( | self | ) |
javaClass |
|
static |