Class PLCellRange

java.lang.Object
com.helger.pdflayout.element.table.PLCellRange
All Implemented Interfaces:
com.helger.commons.lang.ICloneable<PLCellRange>, IPLCellRange

public class PLCellRange extends Object implements IPLCellRange, com.helger.commons.lang.ICloneable<PLCellRange>
Cell range.
Author:
Philip Helger
  • Constructor Details

    • PLCellRange

      public PLCellRange(int nFirstRow, int nLastRow, int nFirstCol, int nLastCol)
      Default constructor
      Parameters:
      nFirstRow - First row index, inclusive.
      nLastRow - Last row index, inclusive.
      nFirstCol - First column index, inclusive.
      nLastCol - Last column index, inclusive.
    • PLCellRange

      public PLCellRange(@Nonnull IPLCellRange aOther)
      Copy constructor
      Parameters:
      aOther - The cell range to copy the values from. May not be null.
  • Method Details

    • getFirstRow

      public int getFirstRow()
      Specified by:
      getFirstRow in interface IPLCellRange
      Returns:
      row number for the upper left hand corner
    • getLastRow

      public int getLastRow()
      Specified by:
      getLastRow in interface IPLCellRange
      Returns:
      row number for the lower right hand corner
    • getFirstColumn

      public int getFirstColumn()
      Specified by:
      getFirstColumn in interface IPLCellRange
      Returns:
      column number for the upper left hand corner
    • getLastColumn

      public int getLastColumn()
      Specified by:
      getLastColumn in interface IPLCellRange
      Returns:
      column number for the lower right hand corner
    • setFirstRow

      @Nonnull public final PLCellRange setFirstRow(int nFirstRow)
      Parameters:
      nFirstRow - row number for the upper left hand corner
      Returns:
      this for chaining
    • setLastRow

      @Nonnull public final PLCellRange setLastRow(int nLastRow)
      Parameters:
      nLastRow - row number for the lower right hand corner
      Returns:
      this for chaining
    • setFirstColumn

      @Nonnull public final PLCellRange setFirstColumn(int nFirstCol)
      Parameters:
      nFirstCol - column number for the upper left hand corner
      Returns:
      this for chaining
    • setLastColumn

      public final PLCellRange setLastColumn(int nLastCol)
      Parameters:
      nLastCol - column number for the lower right hand corner
      Returns:
      this for chaining
    • getClone

      @Nonnull @ReturnsMutableCopy public PLCellRange getClone()
      Specified by:
      getClone in interface com.helger.commons.lang.ICloneable<PLCellRange>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object