Class DmParams

java.lang.Object
com.itextpdf.barcodes.dmcode.DmParams

public class DmParams extends Object
Class that contains the parameters for a DM code. It contains all the information needed to create one data matrix entry
  • 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

    Modifier and Type
    Method
    Description
    int
    Retrieves the size of the data block.
    int
    Retrieves the size of the data.
    int
    Retrieves the size of the error block.
    int
    Retrieves the height of DmParams object.
    int
    Retrieves the height of a single section.
    int
    Retrieves the width of DmParams object.
    int
    Retrieves the width of a single section.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 height
      width - total width
      heightSection - height of a single section
      widthSection - width of a single section
      dataSize - size of the data
      dataBlock - size of a data-block
      errorBlock - size of a error-correction block
  • Method Details

    • 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