com.java4less.vision.qrcode
Class QRCodeData

java.lang.Object
  |
  +--com.java4less.vision.qrcode.QRCodeData

public class QRCodeData
extends java.lang.Object

This class contains the information about a read barcode


Constructor Summary
QRCodeData()
           
 
Method Summary
 int getEClevel()
          return error correction level, valid values are QRCodeDecoder.CORRECTION_LEVEL_M , QRCodeDecoder.CORRECTION_LEVEL_Q, QRCodeDecoder.CORRECTION_LEVEL_H or QRCodeDecoder.CORRECTION_LEVEL_L
 int[] getValue()
          scanned value
 java.lang.String getValueAsString()
          get decoded value as string ( use only for alpha or numeric data)
 int getX1()
          center of the upper left finding pattern
 int getX2()
          center of the upper right finding pattern
 int getX3()
          center of the bottom left finding pattern
 int getY1()
          center of the upper left finding pattern
 int getY2()
          center of the upper right finding pattern
 int getY3()
          center of the bottom left finding pattern
 boolean isDecodingSuccessfull()
          was decoding of the barcode successfull?
 void setDecodingSuccessfull(boolean decodingSuccessfull)
           
 void setEcLevel(int ecLevel)
           
 void setValue(int[] value)
           
 void setX1(int x)
          center of the upper left finding pattern
 void setX2(int x)
          center of the upper right finding pattern
 void setX3(int x)
          center of the bottom left finding pattern
 void setY1(int y)
          center of the upper left finding pattern
 void setY2(int y)
          center of the upper right finding pattern
 void setY3(int y)
          center of the bottom left finding pattern
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QRCodeData

public QRCodeData()
Method Detail

getEClevel

public int getEClevel()
return error correction level, valid values are QRCodeDecoder.CORRECTION_LEVEL_M , QRCodeDecoder.CORRECTION_LEVEL_Q, QRCodeDecoder.CORRECTION_LEVEL_H or QRCodeDecoder.CORRECTION_LEVEL_L

Returns:

getValue

public int[] getValue()
scanned value

Returns:

getX1

public int getX1()
center of the upper left finding pattern

Returns:

getY1

public int getY1()
center of the upper left finding pattern

Returns:

getX2

public int getX2()
center of the upper right finding pattern

Returns:

getY2

public int getY2()
center of the upper right finding pattern

Returns:

getX3

public int getX3()
center of the bottom left finding pattern

Returns:

getY3

public int getY3()
center of the bottom left finding pattern

Returns:

getValueAsString

public java.lang.String getValueAsString()
get decoded value as string ( use only for alpha or numeric data)

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setValue

public void setValue(int[] value)

setX1

public void setX1(int x)
center of the upper left finding pattern

Parameters:
x -

setY1

public void setY1(int y)
center of the upper left finding pattern

Parameters:
y -

setX2

public void setX2(int x)
center of the upper right finding pattern

Parameters:
x -

setY2

public void setY2(int y)
center of the upper right finding pattern

Parameters:
y -

setX3

public void setX3(int x)
center of the bottom left finding pattern

Parameters:
x -

setY3

public void setY3(int y)
center of the bottom left finding pattern

Parameters:
y -

setEcLevel

public void setEcLevel(int ecLevel)

isDecodingSuccessfull

public boolean isDecodingSuccessfull()
was decoding of the barcode successfull?

Returns:

setDecodingSuccessfull

public void setDecodingSuccessfull(boolean decodingSuccessfull)