Class Placement

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

public class Placement extends Object
Utility class that helps to place the data in the barcode.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final short[]
     
    private static final Map<Integer,short[]>
     
    private final int
     
    private final int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Placement(int nrow, int ncol)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    corner1(int chr)
     
    private void
    corner2(int chr)
     
    private void
    corner3(int chr)
     
    private void
    corner4(int chr)
     
    static short[]
    doPlacement(int nrow, int ncol)
    Execute the placement
    private void
     
    private void
    module(int row, int col, int chr, int bit)
     
    private void
    utah(int row, int col, int chr)
     

    Methods inherited from class java.lang.Object

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

    • nrow

      private final int nrow
    • ncol

      private final int ncol
    • array

      private final short[] array
    • cache

      private static final Map<Integer,short[]> cache
  • Constructor Details

    • Placement

      private Placement(int nrow, int ncol)
  • Method Details

    • doPlacement

      public static short[] doPlacement(int nrow, int ncol)
      Execute the placement
      Parameters:
      nrow - number of rows
      ncol - number of columns
      Returns:
      array containing appropriate values for ECC200
    • module

      private void module(int row, int col, int chr, int bit)
    • utah

      private void utah(int row, int col, int chr)
    • corner1

      private void corner1(int chr)
    • corner2

      private void corner2(int chr)
    • corner3

      private void corner3(int chr)
    • corner4

      private void corner4(int chr)
    • ecc200

      private void ecc200()