Package net.sf.jasperreports.engine
Class JRAbstractExporter.BaseExporterContext
java.lang.Object
net.sf.jasperreports.engine.JRAbstractExporter.BaseExporterContext
- All Implemented Interfaces:
JRExporterContext
- Direct Known Subclasses:
AbstractMetadataExporter.ExporterContext,HtmlExporter.ExporterContext,JRCsvExporter.ExporterContext,JRCsvMetadataExporter.ExporterContext,JRDocxExporter.ExporterContext,JRGraphics2DExporter.ExporterContext,JROdsExporter.ExporterContext,JROdtExporter.ExporterContext,JRPptxExporter.ExporterContext,JRPrintServiceExporter.ExporterContext,JRRtfExporter.ExporterContext,JRTextExporter.ExporterContext,JRXlsExporter.ExporterContext,JRXlsMetadataExporter.ExporterContext,JRXlsxExporter.ExporterContext,JRXmlExporter.ExporterContext,JsonExporter.ExporterContext,XlsxMetadataExporter.ExporterContext
- Enclosing class:
JRAbstractExporter<RC extends ReportExportConfiguration,C extends ExporterConfiguration, O extends ExporterOutput, E extends JRExporterContext>
public abstract class JRAbstractExporter.BaseExporterContext
extends Object
implements JRExporterContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the page format of the page which is currently exported.Returns the report which is currently exported.Returns the current exporter.intReturns the current X-axis offset at which elements should be exported.intReturns the current Y-axis offset at which elements should be exported.void
-
Constructor Details
-
BaseExporterContext
public BaseExporterContext()
-
-
Method Details
-
getExporterRef
Description copied from interface:JRExporterContextReturns the current exporter.- Specified by:
getExporterRefin interfaceJRExporterContext- Returns:
- current exporter
-
getJasperReportsContext
- Specified by:
getJasperReportsContextin interfaceJRExporterContext
-
getRepository
- Specified by:
getRepositoryin interfaceJRExporterContext
-
getExportedReport
Description copied from interface:JRExporterContextReturns the report which is currently exported.- Specified by:
getExportedReportin interfaceJRExporterContext- Returns:
- currently exported report
-
getCurrentPageFormat
Description copied from interface:JRExporterContextReturns the page format of the page which is currently exported.In documents made of parts, pages can have a page format that differs from the page format of the document, including the resolution at which they were filled. Exporters that iterate the pages of such documents return here the format of the page being exported, so that element handlers can rely on it instead of on the document level values available from
JRExporterContext.getExportedReport().- Specified by:
getCurrentPageFormatin interfaceJRExporterContext- Returns:
- the page format of the page currently exported
-
getOffsetX
public int getOffsetX()Description copied from interface:JRExporterContextReturns the current X-axis offset at which elements should be exported.- Specified by:
getOffsetXin interfaceJRExporterContext- Returns:
- the current X-axis offset
-
getOffsetY
public int getOffsetY()Description copied from interface:JRExporterContextReturns the current Y-axis offset at which elements should be exported.- Specified by:
getOffsetYin interfaceJRExporterContext- Returns:
- the current Y-axis offset
-
getValue
- Specified by:
getValuein interfaceJRExporterContext
-
setValue
- Specified by:
setValuein interfaceJRExporterContext
-
getValues
- Specified by:
getValuesin interfaceJRExporterContext
-