@Beta public abstract class RangeCopier extends java.lang.Object
Constructor and Description |
---|
RangeCopier(Sheet sheet) |
RangeCopier(Sheet sourceSheet, Sheet destSheet) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
adjustCellReferencesInsideFormula(Cell cell, Sheet destSheet, int deltaX, int deltaY) |
protected boolean |
adjustInBothDirections(Ptg[] ptgs, int sheetIndex, int deltaX, int deltaY) |
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.
(使用输入模式平铺目标区域,覆盖现有内容。)
|
void |
copyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange, boolean copyStyles, boolean copyMergedRanges)
Uses input pattern to tile destination region, overwriting existing content.
(使用输入模式平铺目标区域,覆盖现有内容。)
|
public RangeCopier(Sheet sheet)
public void copyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange)
tilePatternRange
- source range which should be copied in tiled manner
(tilePatternRange - 应该以平铺方式复制的源范围)
tileDestRange
- destination range, which should be overridden
(tileDestRange - 目标范围,应该被覆盖)
public void copyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange, boolean copyStyles, boolean copyMergedRanges)
tilePatternRange
- source range which should be copied in tiled manner
(tilePatternRange - 应该以平铺方式复制的源范围)
tileDestRange
- destination range, which should be overridden
(tileDestRange - 目标范围,应该被覆盖)
copyStyles
- whether to copy the cell styles
(copyStyles - 是否复制单元格样式)
copyMergedRanges
- whether to copy merged ranges
(copyMergedRanges - 是否复制合并范围)
protected abstract void adjustCellReferencesInsideFormula(Cell cell, Sheet destSheet, int deltaX, int deltaY)
protected boolean adjustInBothDirections(Ptg[] ptgs, int sheetIndex, int deltaX, int deltaY)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.