Kofax Mobile SDK API Reference
|
The BoundingTetragon object holds four corner points for a tetragon. This object is serializable. More...
Classes | |
enum | Rotation |
Public Member Functions | |
BoundingTetragon () | |
Public Constructors. More... | |
BoundingTetragon | clone () |
Performs a field-for-field copy of instances of this class. More... | |
BoundingTetragon (int topLeftX, int topLeftY, int topRightX, int topRightY, int bottomLeftX, int bottomLeftY, int bottomRightX, int bottomRightY) | |
BoundingTetragon (Point topLeft, Point topRight, Point bottomLeft, Point bottomRight) | |
Point | getTopLeft () |
Get the topLeft point. More... | |
void | setTopLeft (Point topLeft) |
Set the topLeft point. More... | |
Point | getTopRight () |
Get the topRight point. More... | |
void | setTopRight (Point topRight) |
Set the topRight point. More... | |
Point | getBottomLeft () |
Get the bottomLeft point. More... | |
void | setBottomLeft (Point bottomLeft) |
Set the bottomLeft point. More... | |
Point | getBottomRight () |
Get the bottomRight point. More... | |
void | setBottomRight (Point bottomRight) |
Set the bottomRight point. More... | |
void | rotate (int width, int height, Rotation rotation) |
The BoundingTetragon object holds four corner points for a tetragon. This object is serializable.
The tetragon consists of the its top-left, top-right, bottom-left, and bottom-right points. These are available through accessor methods.
BoundingTetragon objects support serialization in a similar way to Image objects. The Image object documentation provides code examples for serialization and deserialization.
BoundingTetragon | ( | ) |
Public Constructors.
Create a new empty BoundingTetragon.
BoundingTetragon | ( | int | topLeftX, |
int | topLeftY, | ||
int | topRightX, | ||
int | topRightY, | ||
int | bottomLeftX, | ||
int | bottomLeftY, | ||
int | bottomRightX, | ||
int | bottomRightY | ||
) |
BoundingTetragon | ( | Point | topLeft, |
Point | topRight, | ||
Point | bottomLeft, | ||
Point | bottomRight | ||
) |
BoundingTetragon clone | ( | ) |
Performs a field-for-field copy of instances of this class.
Point getBottomLeft | ( | ) |
Get the bottomLeft point.
Point getBottomRight | ( | ) |
Get the bottomRight point.
Point getTopLeft | ( | ) |
Get the topLeft point.
Point getTopRight | ( | ) |
Get the topRight point.
void rotate | ( | int | width, |
int | height, | ||
Rotation | rotation | ||
) |
Given a space in which to rotate, rotate the points in this BoundingTetragon Rotation#LEFT, Rotation#RIGHT or Rotation#FLIP.
width | |
height | |
rotation |
void setBottomLeft | ( | Point | bottomLeft | ) |
Set the bottomLeft point.
void setBottomRight | ( | Point | bottomRight | ) |
Set the bottomRight point.
void setTopLeft | ( | Point | topLeft | ) |
Set the topLeft point.
void setTopRight | ( | Point | topRight | ) |
Set the topRight point.