Package org.apache.poi.ss.usermodel
Class RangeCopier
java.lang.Object
org.apache.poi.ss.usermodel.RangeCopier
- Direct Known Subclasses:
HSSFRangeCopier,XSSFRangeCopier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidcopyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange) Uses input pattern to tile destination region, overwriting existing content.voidcopyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange, boolean copyStyles, boolean copyMergedRanges) Uses input pattern to tile destination region, overwriting existing content.
-
Constructor Details
-
RangeCopier
-
RangeCopier
-
-
Method Details
-
copyRange
Uses input pattern to tile destination region, overwriting existing content. Works in following manner : 1.Start from top-left of destination. 2.Paste source but only inside of destination borders. 3.If there is space left on right or bottom side of copy, process it as in step 2.- Parameters:
tilePatternRange- source range which should be copied in tiled mannertileDestRange- destination range, which should be overridden
-
copyRange
public void copyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange, boolean copyStyles, boolean copyMergedRanges) Uses input pattern to tile destination region, overwriting existing content. Works in following manner : 1.Start from top-left of destination. 2.Paste source but only inside of destination borders. 3.If there is space left on right or bottom side of copy, process it as in step 2.- Parameters:
tilePatternRange- source range which should be copied in tiled mannertileDestRange- destination range, which should be overriddencopyStyles- whether to copy the cell stylescopyMergedRanges- whether to copy merged ranges- Since:
- 5.0.0
-
cloneCellContent
-