Barcode Xpress Mobile for Android

BXResultIdentLocation Class Reference

Class that defines the points inside an image which describe the rectangular region inside of which the native library recognized and decoded a barcode. More...

Inherits android::os::Parcelable.

List of all members.

Public Member Functions

 BXResultIdentLocation (long newX, long newY)
 Constructor.
void setX (long newX)
 Set the horizontal location, in pixels, of this point.
void setY (long newY)
 Set the vertical location, in pixels, of this point.
void setXY (long newX, long newY)
 Set the horizontal and vertical locations, in pixels, of this point.
void setPoint (BXResultIdentLocation newPoint)
 Constructor.
long getX ()
 Get the horizontal location, in pixels, of this point.
long getY ()
 Get the vertical location, in pixels, of this point.
String toString ()
 Get a string in format "(x,y)" that shows the coordinates contained in this point.
int describeContents ()
 Required to implement Parcelable.
void writeToParcel (Parcel dest, int flags)
 Required to implement Parcelable.

Public Attributes

long x
 Horizontal location, in pixels, of this point.
long y
 Vertical location, in pixels, of this point.

Static Public Attributes

static final
Parcelable.Creator
< BXResultIdentLocation
CREATOR
 Required to implement Parcelable.

Detailed Description

Class that defines the points inside an image which describe the rectangular region inside of which the native library recognized and decoded a barcode.

It implements Parcelable so that it can be placed into a Bundle, which is then placed into a Message.


Constructor & Destructor Documentation

BXResultIdentLocation ( long  newX,
long  newY 
) [inline]

Constructor.

Parameters:
newXHorizontal location, in pixels, of this point
newYVertical location, in pixels, of this point

Member Function Documentation

void setPoint ( BXResultIdentLocation  newPoint) [inline]

Constructor.

Clones an existing BXResultIdentLocation.

Parameters:
newPointA BXResultIdentLocation
void setX ( long  newX) [inline]

Set the horizontal location, in pixels, of this point.

Parameters:
newXHorizontal location
void setXY ( long  newX,
long  newY 
) [inline]

Set the horizontal and vertical locations, in pixels, of this point.

Parameters:
newXHorizontal location
newYVertical location
void setY ( long  newY) [inline]

Set the vertical location, in pixels, of this point.

Parameters:
newYVertical location

Member Data Documentation

final Parcelable.Creator<BXResultIdentLocation> CREATOR [static]
Initial value:
 new Parcelable.Creator<BXResultIdentLocation>() {
                                
                                public BXResultIdentLocation createFromParcel(Parcel in) {
                                                return new BXResultIdentLocation(in);
                                }

                                
                                public BXResultIdentLocation[] newArray(int size) {
                                                return new BXResultIdentLocation[size];
                                }
                }

Required to implement Parcelable.