Kofax Mobile SDK API Reference
Public Member Functions | List of all members
BoundingRect Class Reference

The BoundingRect object holds four integer edge coordinates for a rectangle. More...

Public Member Functions

 BoundingRect ()
 Public Constructors. More...
 
 BoundingRect (BoundingRect r)
 Create a new BoundingRect, with the coordinates copied from the specified BoundingRect. More...
 
 BoundingRect (int left, int top, int right, int bottom)
 
int getRectBottom ()
 Get the bottom coordinate of the BoundingRect. More...
 
void setRectBottom (int bottom)
 Set the bottom coordinate of the BoundingRect. More...
 
int getRectLeft ()
 Get the left coordinate of the BoundingRect. More...
 
void setRectLeft (int left)
 Set the left coordinate of the BoundingRect. More...
 
int getRectRight ()
 Get the right coordinate of the BoundingRect. More...
 
void setRectRight (int right)
 Set the right coordinate of the BoundingRect. More...
 
int getRectTop ()
 Get the top coordinate of the BoundingRect. More...
 
void setRectTop (int top)
 Set the top coordinate of the BoundingRect. More...
 
int height ()
 Public Methods. More...
 
void set (int left, int top, int right, int bottom)
 Set this BoundingRect's coordinates to the specified values. More...
 
void set (BoundingRect src)
 Copy the coordinates from src into this BoundingRect. More...
 
void setEmpty ()
 Set this BoundingRect to (0,0,0,0). More...
 
String toString ()
 Returns a string containing a concise, human-readable description of this object. More...
 
int width ()
 Returns calculated width of the BoundingRect. More...
 

Detailed Description

The BoundingRect object holds four integer edge coordinates for a rectangle.

The rectangle consists of the coordinates of its left, top, right, and bottom edges. These edge coordinates are available through accessor methods.

Constructor & Destructor Documentation

Public Constructors.

Create a new empty BoundingRect.

Create a new BoundingRect, with the coordinates copied from the specified BoundingRect.

BoundingRect ( int  left,
int  top,
int  right,
int  bottom 
)

Member Function Documentation

int getRectBottom ( )

Get the bottom coordinate of the BoundingRect.

int getRectLeft ( )

Get the left coordinate of the BoundingRect.

int getRectRight ( )

Get the right coordinate of the BoundingRect.

int getRectTop ( )

Get the top coordinate of the BoundingRect.

int height ( )

Public Methods.

Returns calculated height of the BoundingRect.

void set ( int  left,
int  top,
int  right,
int  bottom 
)

Set this BoundingRect's coordinates to the specified values.

void set ( BoundingRect  src)

Copy the coordinates from src into this BoundingRect.

void setEmpty ( )

Set this BoundingRect to (0,0,0,0).

void setRectBottom ( int  bottom)

Set the bottom coordinate of the BoundingRect.

void setRectLeft ( int  left)

Set the left coordinate of the BoundingRect.

void setRectRight ( int  right)

Set the right coordinate of the BoundingRect.

void setRectTop ( int  top)

Set the top coordinate of the BoundingRect.

String toString ( )

Returns a string containing a concise, human-readable description of this object.

int width ( )

Returns calculated width of the BoundingRect.


The documentation for this class was generated from the following file:
Untitled Document © 2018 Kofax, Inc. All rights reserved. Use is subject to license terms.