Class BarcodeRow

java.lang.Object
com.google.zxing.pdf417.encoder.BarcodeRow

final class BarcodeRow extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private final byte[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BarcodeRow(int width)
    Creates a Barcode row of the width
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    addBar(boolean black, int width)
     
    (package private) byte[]
    getScaledRow(int scale)
    This function scales the row
    private void
    set(int x, boolean black)
    Sets a specific location in the bar
    (package private) void
    set(int x, byte value)
    Sets a specific location in the bar

    Methods inherited from class java.lang.Object

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

    • row

      private final byte[] row
    • currentLocation

      private int currentLocation
  • Constructor Details

    • BarcodeRow

      BarcodeRow(int width)
      Creates a Barcode row of the width
  • Method Details

    • set

      void set(int x, byte value)
      Sets a specific location in the bar
      Parameters:
      x - The location in the bar
      value - Black if true, white if false;
    • set

      private void set(int x, boolean black)
      Sets a specific location in the bar
      Parameters:
      x - The location in the bar
      black - Black if true, white if false;
    • addBar

      void addBar(boolean black, int width)
      Parameters:
      black - A boolean which is true if the bar black false if it is white
      width - How many spots wide the bar is.
    • getScaledRow

      byte[] getScaledRow(int scale)
      This function scales the row
      Parameters:
      scale - How much you want the image to be scaled, must be greater than or equal to 1.
      Returns:
      the scaled row