Class BarcodeMatrix


  • public final class BarcodeMatrix
    extends java.lang.Object
    Holds all of the information for a barcode in a format where it can be easily accessible
    • Constructor Summary

      Constructors 
      Constructor Description
      BarcodeMatrix​(int height, int width)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) BarcodeRow getCurrentRow()  
      byte[][] getMatrix()  
      byte[][] getScaledMatrix​(int xScale, int yScale)  
      (package private) void set​(int x, int y, byte value)  
      (package private) void startRow()  
      • Methods inherited from class java.lang.Object

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

      • currentRow

        private int currentRow
      • height

        private final int height
      • width

        private final int width
    • Constructor Detail

      • BarcodeMatrix

        BarcodeMatrix​(int height,
                      int width)
        Parameters:
        height - the height of the matrix (Rows)
        width - the width of the matrix (Cols)
    • Method Detail

      • set

        void set​(int x,
                 int y,
                 byte value)
      • startRow

        void startRow()
      • getMatrix

        public byte[][] getMatrix()
      • getScaledMatrix

        public byte[][] getScaledMatrix​(int xScale,
                                        int yScale)