Aspose.Barcode for PHP via Java Generation and Recognition API docs

Inherits BaseJavaClass.

Public Member Functions

 __construct ($x, $y, $width, $height)
 
 getX ()
 
 getY ()
 
 getLeft ()
 
 getTop ()
 
 getRight ()
 
 getBottom ()
 
 getWidth ()
 
 getHeight ()
 
 toString ()
 
 equals (Rectangle $obj)
 
 isEmpty ()
 
- Public Member Functions inherited from BaseJavaClass
 __construct ($javaClass)
 
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Static Public Member Functions

static EMPTY ()
 
static construct (... $args)
 
static intersect (Rectangle $a, Rectangle $b)
 
static fromLTRB (int $left, int $top, int $right, int $bottom)
 

Protected Member Functions

 init ()
 
- Protected Member Functions inherited from BaseJavaClass
 setJavaClass ($javaClass)
 

Private Member Functions

 intersectsWithInclusive (Rectangle $r)
 

Private Attributes

const javaClassName = "java.awt.Rectangle"
 

Constructor & Destructor Documentation

◆ __construct()

Rectangle::__construct (   $x,
  $y,
  $width,
  $height 
)

Rectangle constructor.

Parameters
$x
$y

Member Function Documentation

◆ construct()

static Rectangle::construct (   $args)
static

◆ EMPTY()

static Rectangle::EMPTY ( )
static

Represents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle

◆ equals()

Rectangle::equals ( Rectangle  $obj)

◆ fromLTRB()

static Rectangle::fromLTRB ( int  $left,
int  $top,
int  $right,
int  $bottom 
)
static

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

◆ getBottom()

Rectangle::getBottom ( )

◆ getHeight()

Rectangle::getHeight ( )

◆ getLeft()

Rectangle::getLeft ( )

◆ getRight()

Rectangle::getRight ( )

◆ getTop()

Rectangle::getTop ( )

◆ getWidth()

Rectangle::getWidth ( )

◆ getX()

Rectangle::getX ( )

◆ getY()

Rectangle::getY ( )

◆ init()

Rectangle::init ( )
protected

Reimplemented from BaseJavaClass.

◆ intersect()

static Rectangle::intersect ( Rectangle  $a,
Rectangle  $b 
)
static

Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles. Returns null if there is no intersection.

◆ intersectsWithInclusive()

Rectangle::intersectsWithInclusive ( Rectangle  $r)
private

◆ isEmpty()

Rectangle::isEmpty ( )

◆ toString()

Rectangle::toString ( )

Member Data Documentation

◆ javaClassName

const Rectangle::javaClassName = "java.awt.Rectangle"
private