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 Summary
Constructors Constructor Description PLCellRange(int nFirstRow, int nLastRow, int nFirstCol, int nLastCol)Default constructorPLCellRange(IPLCellRange aOther)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)PLCellRangegetClone()intgetFirstColumn()intgetFirstRow()intgetLastColumn()intgetLastRow()inthashCode()PLCellRangesetFirstColumn(int nFirstCol)PLCellRangesetFirstRow(int nFirstRow)PLCellRangesetLastColumn(int nLastCol)PLCellRangesetLastRow(int nLastRow)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.pdflayout.element.table.IPLCellRange
containsColumn, containsRow, getColumnCount, getMaxColumn, getMaxRow, getMinColumn, getMinRow, getNumberOfCells, getRowCount, intersects, isInRange
-
-
-
-
Constructor Detail
-
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 benull.
-
-
Method Detail
-
getFirstRow
public int getFirstRow()
- Specified by:
getFirstRowin interfaceIPLCellRange- Returns:
- row number for the upper left hand corner
-
getLastRow
public int getLastRow()
- Specified by:
getLastRowin interfaceIPLCellRange- Returns:
- row number for the lower right hand corner
-
getFirstColumn
public int getFirstColumn()
- Specified by:
getFirstColumnin interfaceIPLCellRange- Returns:
- column number for the upper left hand corner
-
getLastColumn
public int getLastColumn()
- Specified by:
getLastColumnin interfaceIPLCellRange- 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:
getClonein interfacecom.helger.commons.lang.ICloneable<PLCellRange>
-
-