Package com.itextpdf.barcodes.dmcode
Class DmParams
- java.lang.Object
-
- com.itextpdf.barcodes.dmcode.DmParams
-
public class DmParams extends java.lang.Object
Class that contains the parameters for a DM code. It contains all the information needed to create one data matrix entry
-
-
Field Summary
Fields Modifier and Type Field Description private int
dataBlock
private int
dataSize
private int
errorBlock
private int
height
private int
heightSection
private int
width
private int
widthSection
-
Constructor Summary
Constructors Constructor Description DmParams(int height, int width, int heightSection, int widthSection, int dataSize, int dataBlock, int errorBlock)
Creates a DM code parameter block
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDataBlock()
Retrieves the size of the data block.int
getDataSize()
Retrieves the size of the data.int
getErrorBlock()
Retrieves the size of the error block.int
getHeight()
Retrieves the height of DmParams object.int
getHeightSection()
Retrieves the height of a single section.int
getWidth()
Retrieves the width of DmParams object.int
getWidthSection()
Retrieves the width of a single section.
-
-
-
Constructor Detail
-
DmParams
public DmParams(int height, int width, int heightSection, int widthSection, int dataSize, int dataBlock, int errorBlock)
Creates a DM code parameter block- Parameters:
height
- total heightwidth
- total widthheightSection
- height of a single sectionwidthSection
- width of a single sectiondataSize
- size of the datadataBlock
- size of a data-blockerrorBlock
- size of a error-correction block
-
-
Method Detail
-
getHeight
public int getHeight()
Retrieves the height of DmParams object.- Returns:
- total height value
-
getWidth
public int getWidth()
Retrieves the width of DmParams object.- Returns:
- total width value
-
getHeightSection
public int getHeightSection()
Retrieves the height of a single section.- Returns:
- total height value
-
getWidthSection
public int getWidthSection()
Retrieves the width of a single section.- Returns:
- total width value
-
getDataSize
public int getDataSize()
Retrieves the size of the data.- Returns:
- data size value
-
getDataBlock
public int getDataBlock()
Retrieves the size of the data block.- Returns:
- data block size value
-
getErrorBlock
public int getErrorBlock()
Retrieves the size of the error block.- Returns:
- error block size value
-
-