Class Matrix


  • public class Matrix
    extends Object
    • Constructor Detail

      • Matrix

        public Matrix()
      • Matrix

        public Matrix​(int width,
                      int height)
        Creats a Matrix.
        Parameters:
        width - Width of matrix
        height - Height of matrix
    • Method Detail

      • set

        public void set​(int x,
                        int y,
                        DataCell cell)
        Sets the value at a particular coordinate
        Parameters:
        x - X coordinate
        y - Y coordinate
        value - Value
        right - Whether value is right-justified
        sameAsPrev - Whether value is the same as the previous value. If true, some formats separators between cells
      • set

        public void set​(int x,
                        int y,
                        MemberCell value)
        Sets the value at a particular coordinate
        Parameters:
        x - X coordinate
        y - Y coordinate
        value - Value
        right - Whether value is right-justified
        sameAsPrev - Whether value is the same as the previous value. If true, some formats separators between cells
      • get

        public AbstractBaseCell get​(int x,
                                    int y)
        Returns the cell at a particular coordinate.
        Parameters:
        x - X coordinate
        y - Y coordinate
        Returns:
        Cell
      • getMatrixWidth

        public int getMatrixWidth()
        Return the width of the created matrix.
        Returns:
        the width
      • getMatrixHeight

        public int getMatrixHeight()
        Return the height of the matrix.
        Returns:
        the height
      • setOffset

        public void setOffset​(int offset)
        Set the header/row data offset.
        Parameters:
        offset -
      • getOffset

        public int getOffset()
        Return the header/row data offset.
        Returns:
        offset