@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 mannertileDestRange
- destination range, which should be overriddenpublic void copyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange, boolean copyStyles, boolean copyMergedRanges)
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 rangesprotected 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.