‪Aspose.Barcode for PHP via Java  22.4
‪Aspose.Barcode for PHP via Java Generation and Recognition API docs
Quadrangle Class Reference

Inherits BaseJavaClass.

Public Member Functions

 __construct (Point $leftTop, Point $rightTop, Point $rightBottom, Point $leftBottom)
 
 getLeftTop ()
 
 setLeftTop (Point $value)
 
 getRightTop ()
 
 setRightTop (Point $value)
 
 getRightBottom ()
 
 setRightBottom (Point $value)
 
 getLeftBottom ()
 
 setLeftBottom (Point $value)
 
 isEmpty ()
 
 contains (Point $pt)
 
 containsPoint (int $x, int $y)
 
 containsQuadrangle (Quadrangle $quad)
 
 containsRectangle (Rectangle $rect)
 
 equals (Quadrangle $obj)
 
 hashCode ()
 
 toString ()
 
 getBoundingRectangle ()
 
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Static Public Member Functions

static EMPTY ()
 
static construct (... $args)
 

Protected Member Functions

 init ()
 
 setJavaClass ($javaClass)
 

Detailed Description

Stores a set of four Points that represent a Quadrangle region.

Constructor & Destructor Documentation

◆ __construct()

Quadrangle::__construct ( Point  $leftTop,
Point  $rightTop,
Point  $rightBottom,
Point  $leftBottom 
)

Initializes a new instance of the Quadrangle structure with the describing points.

Parameters
Point$leftTop‪A Point that represents the left-top corner of the Quadrangle.
Point$rightTop‪A Point that represents the right-top corner of the Quadrangle.
Point$rightBottom‪A Point that represents the right-bottom corner of the Quadrangle.
Point$leftBottom‪A Point that represents the left-bottom corner of the Quadrangle.

Member Function Documentation

◆ construct()

static Quadrangle::construct (   $args)
static

◆ contains()

Quadrangle::contains ( Point  $pt)

Determines if the specified Point is contained within this Quadrangle structure.

Parameters
Point‪pt The Point to test.
Returns
‪bool Returns true if Point is contained within this Quadrangle structure; otherwise, false.

◆ containsPoint()

Quadrangle::containsPoint ( int  $x,
int  $y 
)

Determines if the specified point is contained within this Quadrangle structure.

Parameters
int$x‪The x point cordinate.
int$y‪The y point cordinate.
Returns
‪bool Returns true if point is contained within this Quadrangle structure; otherwise, false.

◆ containsQuadrangle()

Quadrangle::containsQuadrangle ( Quadrangle  $quad)

Determines if the specified Quadrangle is contained or intersect this Quadrangle structure.

Parameters
Quadrangle‪quad The Quadrangle to test.
Returns
‪bool Returns true if Quadrangle is contained or intersect this Quadrangle structure; otherwise, false.

◆ containsRectangle()

Quadrangle::containsRectangle ( Rectangle  $rect)

Determines if the specified Rectangle is contained or intersect this Quadrangle structure.

Parameters
Rectangle‪rect The Rectangle to test.
Returns
‪bool Returns true if Rectangle is contained or intersect this Quadrangle structure; otherwise, false.

◆ EMPTY()

static Quadrangle::EMPTY ( )
static

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

◆ equals()

Quadrangle::equals ( Quadrangle  $obj)

Returns a value indicating whether this instance is equal to a specified Quadrangle value.

Parameters
Quadrangle$other‪An Quadrangle value to compare to this instance.
Returns
‪bool true if obj has the same value as this instance; otherwise, false.

◆ getBoundingRectangle()

Quadrangle::getBoundingRectangle ( )

Creates Rectangle bounding this Quadrangle

Returns
Rectangle returns Rectangle bounding this Quadrangle

◆ getJavaClass()

BaseJavaClass::getJavaClass ( )
inherited

◆ getJavaClassName()

BaseJavaClass::getJavaClassName ( )
inherited

◆ getLeftBottom()

Quadrangle::getLeftBottom ( )

Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region

◆ getLeftTop()

Quadrangle::getLeftTop ( )

Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region

◆ getRightBottom()

Quadrangle::getRightBottom ( )

Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region

◆ getRightTop()

Quadrangle::getRightTop ( )

Gets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region

◆ hashCode()

Quadrangle::hashCode ( )

Returns the hash code for this instance.

Returns
‪int A 32-bit signed integer hash code.

◆ init()

Quadrangle::init ( )
protected

Reimplemented from BaseJavaClass.

◆ isEmpty()

Quadrangle::isEmpty ( )

Tests whether all Points of this Quadrangle have values of zero.Value: Returns true if all Points of this Quadrangle have values of zero; otherwise, false.

◆ isNull()

BaseJavaClass::isNull ( )
inherited

◆ printJavaClassName()

BaseJavaClass::printJavaClassName ( )
inherited

◆ setJavaClass()

BaseJavaClass::setJavaClass (   $javaClass)
protectedinherited

◆ setLeftBottom()

Quadrangle::setLeftBottom ( Point  $value)

Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region

◆ setLeftTop()

Quadrangle::setLeftTop ( Point  $value)

Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region

◆ setRightBottom()

Quadrangle::setRightBottom ( Point  $value)

Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region

◆ setRightTop()

Quadrangle::setRightTop ( Point  $value)

Gets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region

◆ toString()

Quadrangle::toString ( )

Returns a human-readable string representation of this Quadrangle.

Returns
‪string A string that represents this Quadrangle.