Package io.keikai.range.impl.imexp
Class ExcelXlsxExporter
- java.lang.Object
-
- io.keikai.range.impl.imexp.AbstractExporter
-
- io.keikai.range.impl.imexp.AbstractExcelExporter
-
- io.keikai.range.impl.imexp.ExcelXlsxExporter
-
- All Implemented Interfaces:
SExporter
,Serializable
public class ExcelXlsxExporter extends AbstractExcelExporter
- Since:
- 3.5.0
- Author:
- dennis, kuro, Hawk
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.keikai.range.impl.imexp.AbstractExcelExporter
_exportCache, _exportPhase, colorTable, DEFAULT_ROW_HEIGHT, exportedPicDataMap, fontTable, sbook, styleTable, tbStyleTable, workbook
-
-
Constructor Summary
Constructors Constructor Description ExcelXlsxExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addColorScale(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule, SConditionalFormattingRule rule)
protected void
addDataBar(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule, SConditionalFormattingRule rule)
protected void
addFormulas(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule, SConditionalFormattingRule rule)
protected void
addIconSet(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule, SConditionalFormattingRule rule)
protected void
addPOIDxfCellStyle(SExtraStyle extraStyle)
Add DxfCellStyle as poi Dxf.protected void
addPoiRule(SSheet sheet, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule, SConditionalFormattingRule rule)
protected void
addPOITableStyle(STableStyle tbStyle)
Add TableStyle as poi TableStyleprotected void
addSqref(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTConditionalFormatting ctcf, SConditionalFormatting cf)
protected void
addValueObject(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfvo ctvo, SCFValueObject vo)
protected Workbook
createPoiBook()
protected void
exportAutoFilter(SSheet sheet, Sheet poiSheet)
See Javadoc atAbstractExcelImporter
importAutoFilter().protected void
exportChart(SSheet sheet, Sheet poiSheet)
reference DrawingManagerImpl.addChartX()protected void
exportColumnArray(SSheet sheet, Sheet poiSheet, SColumnArray columnArr)
protected void
exportConditionalFormatting(SSheet sheet, Sheet poiSheet)
protected void
exportExtLst(SSheet sheet, Sheet poiSheet)
protected void
exportFilterColumns(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTAutoFilter poiAutoFilter, SAutoFilter autoFilter, int numberOfColumn)
protected void
exportPassword(SSheet sheet, Sheet poiSheet)
Export hashed password directly to poiSheet.protected void
exportPicture(SSheet sheet, Sheet poiSheet)
Reference DrawingManagerImpl.addPicture()protected void
exportRowColumn(SSheet sheet, Sheet poiSheet)
protected void
exportSheetPr(SSheet sheet, Sheet poiSheet)
protected int
exportTables(SSheet sheet, Sheet poiSheet0, int tbId)
protected void
exportValidation(SSheet sheet, Sheet poiSheet)
According toSDataValidation.ValidationType
, FORMULA means custom validation.protected void
exportWorkbookProtection(SWorkbookProtection workbookProtection)
protected void
fillCategoryData(org.apache.poi.xssf.usermodel.XSSFSheet sheet, SGeneralChartData chartData, org.apache.poi.xddf.usermodel.chart.XDDFChartData categoryData)
reference ChartDataUtil.fillCategoryData()protected void
fillPoiChartData(org.apache.poi.xssf.usermodel.XSSFSheet poiSheet, org.apache.poi.xssf.usermodel.XSSFChart poiChart, SChart chart, SChartData schartData, boolean isThreeD, boolean isCombo)
protected void
fillXYData(org.apache.poi.xssf.usermodel.XSSFSheet poiSheet, SGeneralChartData chartData, org.apache.poi.xddf.usermodel.chart.XDDFChartData xyData)
reference ChartDataUtil.fillXYData()protected void
fillXYZData(org.apache.poi.xssf.usermodel.XSSFSheet poiSheet, SGeneralChartData chartData, org.apache.poi.xddf.usermodel.chart.XDDFBubbleChartData xyzData)
reference ChartDataUtil.fillXYZData()protected int
getOrCreateDxfId(STableStyleElem tbStyleElem)
protected void
plotPoiChart(SChart chart, org.apache.poi.xssf.usermodel.XSSFChart poiChart)
Create and plot a POI chart with its chart data.protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STConditionalFormattingOperator.Enum
toCFRuleOperator(SConditionalFormattingRule.RuleOperator ctType)
protected ClientAnchor
toClientAnchor(ViewAnchor viewAnchor, SSheet sheet)
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfType.Enum
toConditionalFormatingRuleType(SConditionalFormattingRule.RuleType stype)
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfType.Enum
toConditionalFormattingRuleType(SConditionalFormattingRule.RuleType cfType)
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STIconSetType.Enum
toIconSetType(SIconSet.IconSetType ctType)
protected CellStyle
toPOIDefaultCellStyle(SCellStyle cellStyle)
protected Font
toPOIDxfFont(SFont font0)
protected RichTextString
toPOIRichText(SRichText richText)
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STTimePeriod.Enum
toTimePeriod(SConditionalFormattingRule.RuleTimePeriod ctPeriod)
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfvoType.Enum
toValueObjectType(SCFValueObject.CFValueObjectType ctType)
-
Methods inherited from class io.keikai.range.impl.imexp.AbstractExcelExporter
export, exportCell, exportMergedRegions, exportNamedRange, exportPictureData, exportRow, exportSheet, exportSheetProtection, getFormulaString, isExportCache, setExportCache, toPOICellStyle, toPOIColor, toPOIFont, toPOINamedStyle
-
Methods inherited from class io.keikai.range.impl.imexp.AbstractExporter
export, export, export
-
-
-
-
Method Detail
-
exportColumnArray
protected void exportColumnArray(SSheet sheet, Sheet poiSheet, SColumnArray columnArr)
- Specified by:
exportColumnArray
in classAbstractExcelExporter
-
createPoiBook
protected Workbook createPoiBook()
- Specified by:
createPoiBook
in classAbstractExcelExporter
-
exportChart
protected void exportChart(SSheet sheet, Sheet poiSheet)
reference DrawingManagerImpl.addChartX()- Specified by:
exportChart
in classAbstractExcelExporter
-
exportPicture
protected void exportPicture(SSheet sheet, Sheet poiSheet)
Reference DrawingManagerImpl.addPicture()- Specified by:
exportPicture
in classAbstractExcelExporter
-
fillPoiChartData
protected void fillPoiChartData(org.apache.poi.xssf.usermodel.XSSFSheet poiSheet, org.apache.poi.xssf.usermodel.XSSFChart poiChart, SChart chart, SChartData schartData, boolean isThreeD, boolean isCombo)
- Parameters:
schartData
-
-
plotPoiChart
protected void plotPoiChart(SChart chart, org.apache.poi.xssf.usermodel.XSSFChart poiChart)
Create and plot a POI chart with its chart data.- Parameters:
chart
-poiChart
-
-
toClientAnchor
protected ClientAnchor toClientAnchor(ViewAnchor viewAnchor, SSheet sheet)
-
fillCategoryData
protected void fillCategoryData(org.apache.poi.xssf.usermodel.XSSFSheet sheet, SGeneralChartData chartData, org.apache.poi.xddf.usermodel.chart.XDDFChartData categoryData)
reference ChartDataUtil.fillCategoryData()- Parameters:
chartData
-categoryData
-
-
fillXYData
protected void fillXYData(org.apache.poi.xssf.usermodel.XSSFSheet poiSheet, SGeneralChartData chartData, org.apache.poi.xddf.usermodel.chart.XDDFChartData xyData)
reference ChartDataUtil.fillXYData()- Parameters:
chartData
-xyData
-
-
fillXYZData
protected void fillXYZData(org.apache.poi.xssf.usermodel.XSSFSheet poiSheet, SGeneralChartData chartData, org.apache.poi.xddf.usermodel.chart.XDDFBubbleChartData xyzData)
reference ChartDataUtil.fillXYZData()
-
exportValidation
protected void exportValidation(SSheet sheet, Sheet poiSheet)
According toSDataValidation.ValidationType
, FORMULA means custom validation.- Specified by:
exportValidation
in classAbstractExcelExporter
-
exportAutoFilter
protected void exportAutoFilter(SSheet sheet, Sheet poiSheet)
See Javadoc atAbstractExcelImporter
importAutoFilter().- Specified by:
exportAutoFilter
in classAbstractExcelExporter
-
exportSheetPr
protected void exportSheetPr(SSheet sheet, Sheet poiSheet)
- Specified by:
exportSheetPr
in classAbstractExcelExporter
-
exportExtLst
protected void exportExtLst(SSheet sheet, Sheet poiSheet)
- Specified by:
exportExtLst
in classAbstractExcelExporter
-
exportFilterColumns
protected void exportFilterColumns(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTAutoFilter poiAutoFilter, SAutoFilter autoFilter, int numberOfColumn)
-
exportPassword
protected void exportPassword(SSheet sheet, Sheet poiSheet)
Export hashed password directly to poiSheet.- Specified by:
exportPassword
in classAbstractExcelExporter
-
toPOIDefaultCellStyle
protected CellStyle toPOIDefaultCellStyle(SCellStyle cellStyle)
- Overrides:
toPOIDefaultCellStyle
in classAbstractExcelExporter
-
exportTables
protected int exportTables(SSheet sheet, Sheet poiSheet0, int tbId)
- Specified by:
exportTables
in classAbstractExcelExporter
-
addPOIDxfCellStyle
protected void addPOIDxfCellStyle(SExtraStyle extraStyle)
Description copied from class:AbstractExcelExporter
Add DxfCellStyle as poi Dxf.- Overrides:
addPOIDxfCellStyle
in classAbstractExcelExporter
-
exportConditionalFormatting
protected void exportConditionalFormatting(SSheet sheet, Sheet poiSheet)
- Specified by:
exportConditionalFormatting
in classAbstractExcelExporter
-
addSqref
protected void addSqref(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTConditionalFormatting ctcf, SConditionalFormatting cf)
-
addPoiRule
protected void addPoiRule(SSheet sheet, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule, SConditionalFormattingRule rule)
-
addIconSet
protected void addIconSet(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule, SConditionalFormattingRule rule)
-
addColorScale
protected void addColorScale(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule, SConditionalFormattingRule rule)
-
addDataBar
protected void addDataBar(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule, SConditionalFormattingRule rule)
-
addFormulas
protected void addFormulas(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule ctRule, SConditionalFormattingRule rule)
-
addValueObject
protected void addValueObject(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfvo ctvo, SCFValueObject vo)
-
toTimePeriod
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STTimePeriod.Enum toTimePeriod(SConditionalFormattingRule.RuleTimePeriod ctPeriod)
-
toCFRuleOperator
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STConditionalFormattingOperator.Enum toCFRuleOperator(SConditionalFormattingRule.RuleOperator ctType)
-
toIconSetType
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STIconSetType.Enum toIconSetType(SIconSet.IconSetType ctType)
-
toValueObjectType
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfvoType.Enum toValueObjectType(SCFValueObject.CFValueObjectType ctType)
-
toConditionalFormattingRuleType
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfType.Enum toConditionalFormattingRuleType(SConditionalFormattingRule.RuleType cfType)
-
toConditionalFormatingRuleType
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.STCfType.Enum toConditionalFormatingRuleType(SConditionalFormattingRule.RuleType stype)
-
addPOITableStyle
protected void addPOITableStyle(STableStyle tbStyle)
Description copied from class:AbstractExcelExporter
Add TableStyle as poi TableStyle- Overrides:
addPOITableStyle
in classAbstractExcelExporter
-
getOrCreateDxfId
protected int getOrCreateDxfId(STableStyleElem tbStyleElem)
-
toPOIRichText
protected RichTextString toPOIRichText(SRichText richText)
- Overrides:
toPOIRichText
in classAbstractExcelExporter
-
exportWorkbookProtection
protected void exportWorkbookProtection(SWorkbookProtection workbookProtection)
- Specified by:
exportWorkbookProtection
in classAbstractExcelExporter
-
exportRowColumn
protected void exportRowColumn(SSheet sheet, Sheet poiSheet)
- Overrides:
exportRowColumn
in classAbstractExcelExporter
-
-