com.google.zxing.datamatrix.decoder
Class Version

java.lang.Object
  extended by com.google.zxing.datamatrix.decoder.Version

public final class Version
extends Object

The Version object encapsulates attributes about a particular size Data Matrix Code.

Since:
BlackBerry API 6.0.0

Method Summary
 int getDataRegionSizeColumns()
           
 int getDataRegionSizeRows()
           
 int getSymbolSizeColumns()
           
 int getSymbolSizeRows()
           
 int getTotalCodewords()
           
static Version getVersionForDimensions(int numRows, int numColumns)
          Deduces version information from Data Matrix dimensions.
 int getVersionNumber()
           
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 



Method Detail

getVersionNumber

public int getVersionNumber()
Since:
BlackBerry API 6.0.0

getSymbolSizeRows

public int getSymbolSizeRows()
Since:
BlackBerry API 6.0.0

getSymbolSizeColumns

public int getSymbolSizeColumns()
Since:
BlackBerry API 6.0.0

getDataRegionSizeRows

public int getDataRegionSizeRows()
Since:
BlackBerry API 6.0.0

getDataRegionSizeColumns

public int getDataRegionSizeColumns()
Since:
BlackBerry API 6.0.0

getTotalCodewords

public int getTotalCodewords()
Since:
BlackBerry API 6.0.0

getVersionForDimensions

public static Version getVersionForDimensions(int numRows,
                                              int numColumns)
                                       throws FormatException

Deduces version information from Data Matrix dimensions.

Parameters:
numRows - Number of rows in modules
numColumns - Number of columns in modules
Returns:
Version for a Data Matrix Code of those dimensions
Throws:
FormatException - if dimensions do correspond to a valid Data Matrix size
Since:
BlackBerry API 6.0.0

toString

public String toString()
Description copied from class: Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class Object
Returns:
a string representation of the object.
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal