Class Quadrangle
- java.lang.Object
-
- com.aspose.barcode.barcoderecognition.Quadrangle
-
public class Quadrangle extends java.lang.Object
Stores a set of four
Point
s that represent aQuadrangle
region.
-
-
Field Summary
Fields Modifier and Type Field Description static Quadrangle
EMPTY
Represents aQuadrangle
class with its properties left uninitialized.
-
Constructor Summary
Constructors Constructor Description Quadrangle()
Quadrangle(android.graphics.Point leftTop, android.graphics.Point rightTop, android.graphics.Point rightBottom, android.graphics.Point leftBottom)
Initializes a new instance of theQuadrangle
structure with the describing points.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Quadrangle
clone()
boolean
contains(int x, int y)
Determines if the specified point is contained within thisQuadrangle
class.boolean
contains(android.graphics.Point pt)
Determines if the specifiedPoint
is contained within thisQuadrangle
class.boolean
contains(android.graphics.Rect rect)
Determines if the specifiedRectangle
is contained or intersect thisQuadrangle
class.boolean
contains(Quadrangle quad)
Determines if the specifiedQuadrangle
is contained or intersect thisQuadrangle
class.boolean
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specifiedQuadrangle
value.android.graphics.Rect
getBoundingRectangle()
CreatesRectangle
bounding thisQuadrangle
android.graphics.Point
getLeftBottom()
Gets left-bottom cornerPoint
ofQuadrangle
regionandroid.graphics.Point
getLeftTop()
Gets left-top cornerPoint
ofQuadrangle
regionandroid.graphics.Point
getRightBottom()
Gets right-bottom cornerPoint
ofQuadrangle
regionandroid.graphics.Point
getRightTop()
Gets right-top cornerPoint
ofQuadrangle
regionint
hashCode()
Returns the hash code for this instance.boolean
isEmpty()
Tests whether allPoint
s of thisQuadrangle
have values of zero.void
setLeftBottom(android.graphics.Point value)
Gets left-bottom cornerPoint
ofQuadrangle
regionvoid
setLeftTop(android.graphics.Point value)
Gets left-top cornerPoint
ofQuadrangle
regionvoid
setRightBottom(android.graphics.Point value)
Gets right-bottom cornerPoint
ofQuadrangle
regionvoid
setRightTop(android.graphics.Point value)
Gets right-top cornerPoint
ofQuadrangle
regionjava.lang.String
toString()
Returns a human-readable string representation of thisQuadrangle
.
-
-
-
Field Detail
-
EMPTY
public static final Quadrangle EMPTY
Represents a
Value:Quadrangle
class with its properties left uninitialized.Quadrangle
-
-
Constructor Detail
-
Quadrangle
public Quadrangle()
-
Quadrangle
public Quadrangle(android.graphics.Point leftTop, android.graphics.Point rightTop, android.graphics.Point rightBottom, android.graphics.Point leftBottom)
Initializes a new instance of the
Quadrangle
structure with the describing points.- Parameters:
leftTop
- APoint
that represents the left-top corner of the Quadrangle.rightTop
- APoint
that represents the right-top corner of the Quadrangle.rightBottom
- APoint
that represents the right-bottom corner of the Quadrangle.leftBottom
- APoint
that represents the left-bottom corner of the Quadrangle.
-
-
Method Detail
-
getLeftTop
public android.graphics.Point getLeftTop()
Gets left-top corner
Value: A left-top cornerPoint
ofQuadrangle
regionPoint
ofQuadrangle
region
-
setLeftTop
public void setLeftTop(android.graphics.Point value)
Gets left-top corner
Value: A left-top cornerPoint
ofQuadrangle
regionPoint
ofQuadrangle
region
-
getRightTop
public android.graphics.Point getRightTop()
Gets right-top corner
Value: A right-top cornerPoint
ofQuadrangle
regionPoint
ofQuadrangle
region
-
setRightTop
public void setRightTop(android.graphics.Point value)
Gets right-top corner
Value: A right-top cornerPoint
ofQuadrangle
regionPoint
ofQuadrangle
region
-
getRightBottom
public android.graphics.Point getRightBottom()
Gets right-bottom corner
Value: A right-bottom cornerPoint
ofQuadrangle
regionPoint
ofQuadrangle
region
-
setRightBottom
public void setRightBottom(android.graphics.Point value)
Gets right-bottom corner
Value: A right-bottom cornerPoint
ofQuadrangle
regionPoint
ofQuadrangle
region
-
getLeftBottom
public android.graphics.Point getLeftBottom()
Gets left-bottom corner
Value: A left-bottom cornerPoint
ofQuadrangle
regionPoint
ofQuadrangle
region
-
setLeftBottom
public void setLeftBottom(android.graphics.Point value)
Gets left-bottom corner
Value: A left-bottom cornerPoint
ofQuadrangle
regionPoint
ofQuadrangle
region
-
isEmpty
public boolean isEmpty()
Tests whether all
Value: ReturnsPoint
s of thisQuadrangle
have values of zero.<b>true</b>
if allPoint
s of thisQuadrangle
have values of zero; otherwise,<b>false</b>
.
-
contains
public boolean contains(android.graphics.Point pt)
Determines if the specified
Point
is contained within thisQuadrangle
class.- Parameters:
pt
- ThePoint
to test.- Returns:
- Returns
<b>true</b>
ifPoint
is contained within thisQuadrangle
class; otherwise,<b>false</b>
.
-
contains
public boolean contains(int x, int y)
Determines if the specified point is contained within this
Quadrangle
class.- Parameters:
x
- The x point cordinate.y
- The y point cordinate.- Returns:
- Returns
<b>true</b>
if point is contained within thisQuadrangle
class; otherwise,<b>false</b>
.
-
contains
public boolean contains(Quadrangle quad)
Determines if the specified
Quadrangle
is contained or intersect thisQuadrangle
class.- Parameters:
quad
- TheQuadrangle
to test.- Returns:
- Returns
<b>true</b>
ifQuadrangle
is contained or intersect thisQuadrangle
class; otherwise,<b>false</b>
.
-
contains
public boolean contains(android.graphics.Rect rect)
Determines if the specified
Rectangle
is contained or intersect thisQuadrangle
class.- Parameters:
rect
- TheRectangle
to test.- Returns:
- Returns
<b>true</b>
ifRectangle
is contained or intersect thisQuadrangle
class; otherwise,<b>false</b>
.
-
equals
public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
Quadrangle
value.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- AnQuadrangle
value to compare to this instance.- Returns:
<b>true</b>
if obj has the same value as this instance; otherwise,<b>false</b>
.
-
hashCode
public int hashCode()
Returns the hash code for this instance.
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- A 32-bit signed integer hash code.
-
toString
public java.lang.String toString()
Returns a human-readable string representation of this
Quadrangle
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string that represents this
Quadrangle
.
-
getBoundingRectangle
public android.graphics.Rect getBoundingRectangle()
Creates
Rectangle
bounding thisQuadrangle
- Returns:
- returns
Rectangle
bounding thisQuadrangle
-
clone
public Quadrangle clone()
- Overrides:
clone
in classjava.lang.Object
-
-