public class ExcelXlsxImporter extends AbstractExcelImporter
_importCache, book, BOOK_TYPE_KEY, importedFont, importedPictureData, importedStyle, workbook| Constructor and Description |
|---|
ExcelXlsxImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected SFont |
createDxfZssFont(Font poiFont) |
protected Workbook |
createPoiBook(InputStream is) |
protected XSSFChartX |
createXSSFChartX(XSSFDrawing patriarch,
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGraphicalObjectFrame gfrm,
XSSFClientAnchor xanchor) |
protected int |
getAnchorHeightInPx(ClientAnchor anchor,
Sheet poiSheet)
DefaultBookWidgetLoader.getXSSFHeightInPx()
|
protected int |
getAnchorWidthInPx(ClientAnchor anchor,
Sheet poiSheet)
Reference DefaultBookWidgetLoader.getXSSFWidthInPx()
|
protected String |
getTitleFormula(ChartTextSource textSource,
int seriesIndex)
return a formula or generate a default title ("Series[N]")if title doesn't exist.
|
protected String |
getValueFormula(ChartDataSource<?> dataSource)
reference ChartHelper.prepareValues()
|
protected int |
getXoffsetInPixel(ClientAnchor clientAnchor,
Sheet poiSheet) |
protected int |
getYoffsetInPixel(ClientAnchor clientAnchor,
Sheet poiSheet) |
protected void |
importAxis(XSSFChart xssfChart,
SChart chart) |
protected SBorder |
importBorder(DxfCellStyle poiCellStyle) |
protected void |
importChart(List<ZssChartX> poiCharts,
Sheet poiSheet,
SSheet sheet)
Not import X & Y axis title because
XSSFCategoryAxis doesn't provide API to get title. |
protected SColorFilter |
importColorFilter(ColorFilter colorFilter) |
protected void |
importColumn(Sheet poiSheet,
SSheet sheet)
[ISO/IEC 29500-1 1st Edition] 18.3.1.13 col (Column Width & Formatting)
By experiments, CT_Col is always created in ascending order by min and the range specified by min & max doesn't overlap each other.
For example: |
protected void |
importConditionalFormatting(SSheet sheet,
Sheet poiSheet) |
protected SCustomFilters |
importCustomFilters(CustomFilters poiCustomFilters) |
protected void |
importDrawings(Sheet poiSheet,
SSheet sheet)
Drawings includes charts and pictures.
|
protected SDynamicFilter |
importDynamicFilter(DynamicFilter poiDynamicFilter) |
protected void |
importExternalBookLinks()
Excel uses external book links to map external book index and name.
|
protected SExtraStyle |
importExtraStyle(DxfCellStyle poiCellStyle) |
protected void |
importExtraStyles() |
protected SFont |
importFont(CellStyle poiCellStyle) |
protected void |
importPassword(Sheet poiSheet,
SSheet sheet) |
protected void |
importSeries(List<? extends CategoryDataSerie> seriesList,
SGeneralChartData chartData)
reference ChartHepler.prepareCategoryModel()
Category normally indicates the values show on X axis.
|
protected void |
importSheetDefaultColumnWidth(Sheet poiSheet,
SSheet sheet) |
protected void |
importSheetProtection(Sheet poiSheet,
SSheet sheet)
POI SheetProtection.
|
protected void |
importTableName(STable table) |
protected void |
importTables(Sheet poiSheet,
SSheet sheet)
POI sheet tables
|
protected STableStyle |
importTableStyle(TableStyle poiTableStyle) |
protected STableStyleElem |
importTableStyleElem(TableStyle poiTableStyle,
String name) |
protected void |
importTableStyles() |
protected STop10Filter |
importTop10Filter(Top10Filter poiTop10Filter) |
protected void |
importValidation(Sheet poiSheet,
SSheet sheet)
Reference BookHelper.validate()
|
protected void |
importXySeries(List<? extends XYDataSerie> seriesList,
SGeneralChartData chartData) |
protected void |
importXyzSeries(List<? extends XYZDataSerie> seriesList,
SGeneralChartData chartData)
reference ChartHepler.prepareXYZModel()
|
protected SColorScale |
prepareColorScale(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule) |
protected ConditionalFormattingImpl |
prepareConditionalFormattingImpl(SSheet sheet,
XSSFConditionalFormatting cf) |
protected ConditionalFormattingRuleImpl |
prepareConditonalFormattingRuleImpl(SConditionalFormatting cfi,
XSSFConditionalFormattingRule poiRule) |
protected SDataBar |
prepareDataBar(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule) |
protected void |
prepareFormulas(ConditionalFormattingRuleImpl cfri,
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule) |
protected SIconSet |
prepareIconSet(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule) |
protected SCFValueObject |
prepareValueObject(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfvo ctvo) |
protected void |
setBookType(SBook book) |
protected boolean |
skipName(Name definedName) |
protected SConditionalFormattingRule.RuleOperator |
toCFRuleOperator(org.openxmlformats.schemas.spreadsheetml.x2006.main.STConditionalFormattingOperator.Enum ctType) |
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfType.Enum |
toConditionalFormatingRuleType(SConditionalFormattingRule.RuleType stype) |
protected SConditionalFormattingRule.RuleType |
toConditionalFormattingRuleType(org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfType.Enum cfType) |
protected SIconSet.IconSetType |
toIconSetType(org.openxmlformats.schemas.spreadsheetml.x2006.main.STIconSetType.Enum ctType) |
protected SConditionalFormattingRule.RuleTimePeriod |
toTimePeriod(org.openxmlformats.schemas.spreadsheetml.x2006.main.STTimePeriod.Enum ctPeriod) |
protected SCFValueObject.CFValueObjectType |
toValueObjectType(org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfvoType.Enum ctType) |
createZssFont, getBookType, getPoiFontFromRichText, importAutoFilter, importAutoFilterColumns, importCell, importCellStyle, importCellStyle, importDefaultCellStyles, importMergedRegions, importNamedRange, importNamedStyles, importPicture, importRichText, importRow, imports, importSheet, isImportCache, mustCalc, setImportCache, toViewAnchor, toZssFontimports, importsprotected Workbook createPoiBook(InputStream is) throws IOException
createPoiBook in class AbstractExcelImporterIOExceptionprotected void importExternalBookLinks()
AbstractExcelImporterimportExternalBookLinks in class AbstractExcelImporterprotected void importColumn(Sheet poiSheet, SSheet sheet)
importColumn in class AbstractExcelImporterprotected void importChart(List<ZssChartX> poiCharts, Sheet poiSheet, SSheet sheet)
XSSFCategoryAxis doesn't provide API to get title.
Reference ChartHelper.drawXSSFChart()protected void importSeries(List<? extends CategoryDataSerie> seriesList, SGeneralChartData chartData)
seriesList - source chart datachartData - destination chart dataprotected void importXySeries(List<? extends XYDataSerie> seriesList, SGeneralChartData chartData)
protected void importXyzSeries(List<? extends XYZDataSerie> seriesList, SGeneralChartData chartData)
seriesList - chart - protected String getTitleFormula(ChartTextSource textSource, int seriesIndex)
textSource - protected String getValueFormula(ChartDataSource<?> dataSource)
dataSource - protected void importDrawings(Sheet poiSheet, SSheet sheet)
AbstractExcelImporterimportDrawings in class AbstractExcelImporterprotected XSSFChartX createXSSFChartX(XSSFDrawing patriarch, org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGraphicalObjectFrame gfrm, XSSFClientAnchor xanchor)
protected int getAnchorWidthInPx(ClientAnchor anchor, Sheet poiSheet)
getAnchorWidthInPx in class AbstractExcelImporterprotected int getAnchorHeightInPx(ClientAnchor anchor, Sheet poiSheet)
getAnchorHeightInPx in class AbstractExcelImporterprotected int getXoffsetInPixel(ClientAnchor clientAnchor, Sheet poiSheet)
getXoffsetInPixel in class AbstractExcelImporterprotected int getYoffsetInPixel(ClientAnchor clientAnchor, Sheet poiSheet)
getYoffsetInPixel in class AbstractExcelImporterprotected void importValidation(Sheet poiSheet, SSheet sheet)
importValidation in class AbstractExcelImporterprotected boolean skipName(Name definedName)
skipName in class AbstractExcelImporterprotected void setBookType(SBook book)
setBookType in class AbstractExcelImporterprotected void importPassword(Sheet poiSheet, SSheet sheet)
importPassword in class AbstractExcelImporterprotected void importSheetProtection(Sheet poiSheet, SSheet sheet)
AbstractExcelImporterimportSheetProtection in class AbstractExcelImporterpoiSheet - source POI sheetsheet - destination sheetprotected void importSheetDefaultColumnWidth(Sheet poiSheet, SSheet sheet)
importSheetDefaultColumnWidth in class AbstractExcelImporterprotected void importTables(Sheet poiSheet, SSheet sheet)
AbstractExcelImporterimportTables in class AbstractExcelImporterpoiSheet - source POI sheetsheet - destination sheetprotected void importTableName(STable table)
protected void importExtraStyles()
importExtraStyles in class AbstractExcelImporterprotected SExtraStyle importExtraStyle(DxfCellStyle poiCellStyle)
protected SBorder importBorder(DxfCellStyle poiCellStyle)
protected SFont importFont(CellStyle poiCellStyle)
importFont in class AbstractExcelImporterprotected void importConditionalFormatting(SSheet sheet, Sheet poiSheet)
importConditionalFormatting in class AbstractExcelImporterprotected ConditionalFormattingImpl prepareConditionalFormattingImpl(SSheet sheet, XSSFConditionalFormatting cf)
protected ConditionalFormattingRuleImpl prepareConditonalFormattingRuleImpl(SConditionalFormatting cfi, XSSFConditionalFormattingRule poiRule)
protected SIconSet prepareIconSet(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule)
protected SColorScale prepareColorScale(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule)
protected SDataBar prepareDataBar(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule)
protected void prepareFormulas(ConditionalFormattingRuleImpl cfri, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule)
protected SCFValueObject prepareValueObject(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfvo ctvo)
protected SConditionalFormattingRule.RuleTimePeriod toTimePeriod(org.openxmlformats.schemas.spreadsheetml.x2006.main.STTimePeriod.Enum ctPeriod)
protected SConditionalFormattingRule.RuleOperator toCFRuleOperator(org.openxmlformats.schemas.spreadsheetml.x2006.main.STConditionalFormattingOperator.Enum ctType)
protected SIconSet.IconSetType toIconSetType(org.openxmlformats.schemas.spreadsheetml.x2006.main.STIconSetType.Enum ctType)
protected SCFValueObject.CFValueObjectType toValueObjectType(org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfvoType.Enum ctType)
protected SConditionalFormattingRule.RuleType toConditionalFormattingRuleType(org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfType.Enum cfType)
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfType.Enum toConditionalFormatingRuleType(SConditionalFormattingRule.RuleType stype)
protected void importTableStyles()
importTableStyles in class AbstractExcelImporterprotected STableStyleElem importTableStyleElem(TableStyle poiTableStyle, String name)
protected STableStyle importTableStyle(TableStyle poiTableStyle)
protected SColorFilter importColorFilter(ColorFilter colorFilter)
importColorFilter in class AbstractExcelImporterprotected SCustomFilters importCustomFilters(CustomFilters poiCustomFilters)
importCustomFilters in class AbstractExcelImporterprotected SDynamicFilter importDynamicFilter(DynamicFilter poiDynamicFilter)
importDynamicFilter in class AbstractExcelImporterprotected STop10Filter importTop10Filter(Top10Filter poiTop10Filter)
importTop10Filter in class AbstractExcelImporterCopyright © 2020. All rights reserved.