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 asposebarcode.Assist.BaseJavaClass.

Public Member Functions

def init (self)
 
def __init__ (self, x, y, width, height)
 Rectangle constructor. More...
 
def getX (self)
 Returns the X coordinate of the bounding Rectangle in double precision. More...
 
def getY (self)
 Returns the Y coordinate of the bounding Rectangle in double precision. More...
 
def getLeft (self)
 Gets the x-coordinate of the left edge of self Rectangle class. More...
 
def getTop (self)
 Gets the y-coordinate of the top edge of self Rectangle class. More...
 
def getRight (self)
 Gets the x-coordinate that is the sum of X and Width property values of self Rectangle class. More...
 
def getBottom (self)
 Gets the y-coordinate that is the sum of the Y and Height property values of self Rectangle class. More...
 
def getWidth (self)
 Returns the width of the bounding Rectangle in double precision. More...
 
def getHeight (self)
 Returns the height of the bounding Rectangle in double precision. More...
 
def toString (self)
 
def equals (self, obj)
 
def intersectsWithInclusive (self, rectangle)
 Determines if self rectangle intersects with rect. More...
 
def isEmpty (self)
 
- Public Member Functions inherited from asposebarcode.Assist.BaseJavaClass
def __init__ (self, javaClass)
 
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Static Public Member Functions

def construct (arg)
 
def intersect (a, b)
 Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles. More...
 
def fromLTRB (left, top, right, bottom)
 FromLTRB Shared Method Produces a Rectangle class from left, top, right, and bottom coordinates. More...
 

Public Attributes

 javaClass
 
- Public Attributes inherited from asposebarcode.Assist.BaseJavaClass
 javaClass
 
 javaClassName
 

Static Public Attributes

string javaClassName = "java.awt.Rectangle"
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def asposebarcode.Assist.Rectangle.__init__ (   self,
  x,
  y,
  width,
  height 
)

Rectangle constructor.

Parameters
xThe x-coordinate of the upper-left corner of the rectangle.
yThe y-coordinate of the upper-left corner of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.

Member Function Documentation

◆ construct()

def asposebarcode.Assist.Rectangle.construct (   arg)
static

◆ equals()

def asposebarcode.Assist.Rectangle.equals (   self,
  obj 
)

◆ fromLTRB()

def asposebarcode.Assist.Rectangle.fromLTRB (   left,
  top,
  right,
  bottom 
)
static

FromLTRB Shared Method Produces a Rectangle class from left, top, right, and bottom coordinates.

◆ getBottom()

def asposebarcode.Assist.Rectangle.getBottom (   self)

Gets the y-coordinate that is the sum of the Y and Height property values of self Rectangle class.

Returns
The y-coordinate that is the sum of Y and Height of self Rectangle.

◆ getHeight()

def asposebarcode.Assist.Rectangle.getHeight (   self)

Returns the height of the bounding Rectangle in double precision.

Returns
the height of the bounding Rectangle.

◆ getLeft()

def asposebarcode.Assist.Rectangle.getLeft (   self)

Gets the x-coordinate of the left edge of self Rectangle class.

Returns
The x-coordinate of the left edge of self Rectangle class.

◆ getRight()

def asposebarcode.Assist.Rectangle.getRight (   self)

Gets the x-coordinate that is the sum of X and Width property values of self Rectangle class.

Returns
The x-coordinate that is the sum of X and Width of self Rectangle.

◆ getTop()

def asposebarcode.Assist.Rectangle.getTop (   self)

Gets the y-coordinate of the top edge of self Rectangle class.

Returns
The y-coordinate of the top edge of self Rectangle class.

◆ getWidth()

def asposebarcode.Assist.Rectangle.getWidth (   self)

Returns the width of the bounding Rectangle in double precision.

Returns
the width of the bounding Rectangle.

◆ getX()

def asposebarcode.Assist.Rectangle.getX (   self)

Returns the X coordinate of the bounding Rectangle in double precision.

Returns
the X coordinate of the bounding Rectangle.

◆ getY()

def asposebarcode.Assist.Rectangle.getY (   self)

Returns the Y coordinate of the bounding Rectangle in double precision.

Returns
the Y coordinate of the bounding Rectangle.

◆ init()

def asposebarcode.Assist.Rectangle.init (   self)

◆ intersect()

def asposebarcode.Assist.Rectangle.intersect (   a,
  b 
)
static

Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles.

Returns null if there is no intersection.

◆ intersectsWithInclusive()

def asposebarcode.Assist.Rectangle.intersectsWithInclusive (   self,
  rectangle 
)

Determines if self rectangle intersects with rect.

Parameters
rectangle
Returns
{boolean

◆ isEmpty()

def asposebarcode.Assist.Rectangle.isEmpty (   self)

◆ toString()

def asposebarcode.Assist.Rectangle.toString (   self)

Member Data Documentation

◆ javaClass

asposebarcode.Assist.Rectangle.javaClass

◆ javaClassName

string asposebarcode.Assist.Rectangle.javaClassName = "java.awt.Rectangle"
static