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
ConstructorsConstructorDescriptionPLCellRange(int nFirstRow, int nLastRow, int nFirstCol, int nLastCol) Default constructorPLCellRange(IPLCellRange aOther) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleangetClone()intintintintinthashCode()final PLCellRangesetFirstColumn(int nFirstCol) final PLCellRangesetFirstRow(int nFirstRow) final PLCellRangesetLastColumn(int nLastCol) final PLCellRangesetLastRow(int nLastRow) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.pdflayout.element.table.IPLCellRange
containsColumn, containsRow, getColumnCount, getMaxColumn, getMaxRow, getMinColumn, getMinRow, getNumberOfCells, getRowCount, intersects, isInRange
-
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
Copy constructor- Parameters:
aOther- The cell range to copy the values from. May not benull.
-
-
Method Details
-
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
- Parameters:
nFirstRow- row number for the upper left hand corner- Returns:
- this for chaining
-
setLastRow
- Parameters:
nLastRow- row number for the lower right hand corner- Returns:
- this for chaining
-
setFirstColumn
- Parameters:
nFirstCol- column number for the upper left hand corner- Returns:
- this for chaining
-
setLastColumn
- Parameters:
nLastCol- column number for the lower right hand corner- Returns:
- this for chaining
-
getClone
- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<PLCellRange>
-
toString
-
equals
-
hashCode
public int hashCode()
-