Package org.apache.poi.ss.usermodel
Class RangeCopier
- java.lang.Object
-
- org.apache.poi.ss.usermodel.RangeCopier
-
- Direct Known Subclasses:
HSSFRangeCopier
,XSSFRangeCopier
@Beta public abstract class RangeCopier extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RangeCopier(Sheet sheet)
RangeCopier(Sheet sourceSheet, Sheet destSheet)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
cloneCellContent(Cell srcCell, Cell destCell, java.util.Map<java.lang.Integer,CellStyle> styleMap)
void
copyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange)
Uses input pattern to tile destination region, overwriting existing content.
-
-
-
Method Detail
-
copyRange
public void copyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange)
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
-
-