Class JRXlsAbstractExporterNature
- java.lang.Object
-
- net.sf.jasperreports.engine.export.AbstractExporterNature
-
- net.sf.jasperreports.engine.export.JRXlsAbstractExporterNature
-
- All Implemented Interfaces:
ExporterFilter
,ExporterNature
- Direct Known Subclasses:
JROdsExporterNature
,JRXlsExporterNature
,JRXlsxExporterNature
public abstract class JRXlsAbstractExporterNature extends AbstractExporterNature
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isIgnoreGraphics
protected boolean
isIgnorePageMargins
-
Fields inherited from class net.sf.jasperreports.engine.export.AbstractExporterNature
filter, handlerEnvironment, jasperReportsContext, propertiesUtil
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRXlsAbstractExporterNature(JasperReportsContext jasperReportsContext, ExporterFilter filter, boolean isIgnoreGraphics, boolean isIgnorePageMargins)
-
Method Summary
-
Methods inherited from class net.sf.jasperreports.engine.export.AbstractExporterNature
getPropertiesUtil
-
-
-
-
Constructor Detail
-
JRXlsAbstractExporterNature
protected JRXlsAbstractExporterNature(JasperReportsContext jasperReportsContext, ExporterFilter filter, boolean isIgnoreGraphics, boolean isIgnorePageMargins)
-
-
Method Detail
-
isToExport
public boolean isToExport(JRPrintElement element)
-
isDeep
public boolean isDeep(JRPrintFrame frame)
Description copied from interface:ExporterNature
Specified whether to include in the grid sub elements of a givenframe
element.
-
isSpanCells
public boolean isSpanCells()
Description copied from interface:ExporterNature
Specifies whether the exporter handles cells span
-
isIgnoreLastRow
public boolean isIgnoreLastRow()
-
isHorizontallyMergeEmptyCells
public boolean isHorizontallyMergeEmptyCells()
Description copied from interface:ExporterNature
Flag that specifies that empty cells are to be horizontally merged.If the flag is set and this nature is
deep
, the nature is required toexport
frames
.- Returns:
- whether empty cells are to be horizontally merged
-
isIgnorePageMargins
public boolean isIgnorePageMargins()
Specifies whether empty page margins should be ignored
-
isBreakBeforeRow
public boolean isBreakBeforeRow(JRPrintElement element)
-
isBreakAfterRow
public boolean isBreakAfterRow(JRPrintElement element)
-
getRowAutoFit
public Boolean getRowAutoFit(JRPrintElement element)
-
getIgnoreRowHeight
public Boolean getIgnoreRowHeight(JRPrintElement element)
-
getColumnAutoFit
public Boolean getColumnAutoFit(JRPrintElement element)
-
getShowGridlines
public Boolean getShowGridlines(JRPrintElement element)
-
getIgnoreCellBackground
public Boolean getIgnoreCellBackground(JRPrintElement element)
-
getIgnoreCellBorder
public Boolean getIgnoreCellBorder(JRPrintElement element)
-
getWhitePageBackground
public Boolean getWhitePageBackground(JRPrintElement element)
-
getColumnWidth
public Integer getColumnWidth(JRPrintElement element, boolean columnAutoFit)
-
getColumnWidthRatio
public Float getColumnWidthRatio(JRPrintElement element)
-
getRowLevelSuffixes
public List<JRPropertiesUtil.PropertySuffix> getRowLevelSuffixes(JRPrintElement element)
-
getSheetName
public String getSheetName(JRPrintElement element)
-
getFreezeRowEdge
public CellEdgeEnum getFreezeRowEdge(JRPrintElement element)
-
getFreezeColumnEdge
public CellEdgeEnum getFreezeColumnEdge(JRPrintElement element)
-
getSheetTabColor
public String getSheetTabColor(JRPrintElement element)
-
getPageScale
public Integer getPageScale(JRPrintElement element)
-
getFirstPageNumber
public Integer getFirstPageNumber(JRPrintElement element)
-
getDefinedNames
public JRPropertiesUtil.PropertySuffix[] getDefinedNames(JRPrintElement element)
-
setXProperties
public void setXProperties(CutsInfo xCuts, JRPrintElement element, int row1, int col1, int row2, int col2)
- Specified by:
setXProperties
in interfaceExporterNature
- Overrides:
setXProperties
in classAbstractExporterNature
-
setXProperties
public void setXProperties(Map<String,Object> xCutsProperties, JRPrintElement element)
- Specified by:
setXProperties
in interfaceExporterNature
- Overrides:
setXProperties
in classAbstractExporterNature
-
setYProperties
public void setYProperties(CutsInfo yCuts, JRPrintElement element, int row1, int col1, int row2, int col2)
- Specified by:
setYProperties
in interfaceExporterNature
- Overrides:
setYProperties
in classAbstractExporterNature
-
setYProperties
public void setYProperties(Map<String,Object> yCutsProperties, JRPrintElement element)
- Specified by:
setYProperties
in interfaceExporterNature
- Overrides:
setYProperties
in classAbstractExporterNature
-
getPrintPageTopMargin
public Integer getPrintPageTopMargin(JRPrintElement element)
-
getPrintPageLeftMargin
public Integer getPrintPageLeftMargin(JRPrintElement element)
-
getPrintPageBottomMargin
public Integer getPrintPageBottomMargin(JRPrintElement element)
-
getPrintPageRightMargin
public Integer getPrintPageRightMargin(JRPrintElement element)
-
getPrintPageHeight
public Integer getPrintPageHeight(JRPrintElement element)
-
getPrintPageWidth
public Integer getPrintPageWidth(JRPrintElement element)
-
getPrintHeaderMargin
public Integer getPrintHeaderMargin(JRPrintElement element)
-
getPrintFooterMargin
public Integer getPrintFooterMargin(JRPrintElement element)
-
getSheetHeaderLeft
public String getSheetHeaderLeft(JRPrintElement element)
-
getSheetHeaderCenter
public String getSheetHeaderCenter(JRPrintElement element)
-
getSheetHeaderRight
public String getSheetHeaderRight(JRPrintElement element)
-
getSheetFooterLeft
public String getSheetFooterLeft(JRPrintElement element)
-
getSheetFooterCenter
public String getSheetFooterCenter(JRPrintElement element)
-
getSheetFooterRight
public String getSheetFooterRight(JRPrintElement element)
-
-