Class JFreeReport

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, ReportStructureRoot

    public class JFreeReport
    extends ReportDefinition
    implements ReportStructureRoot
    A JFreeReport instance is used as report template to define the visual layout of a report and to collect all data sources for the reporting. Possible data sources are the TableModel, Expressions or ReportParameters.

    New since 0.9: Report properties contain data. They do not contain processing objects (like the outputtarget) or attribute values. Report properties should only contains things, which are intended for printing.

    The report data source is no longer part of the report definition. It is an extra object passed over to the report processor or generated using a report data factory.

    Author:
    David Gilbert, Thomas Morgner
    See Also:
    Serialized Form
    • Constructor Detail

      • JFreeReport

        public JFreeReport()
        The default constructor. Creates an empty but fully initialized report.
    • Method Detail

      • getConfiguration

        public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
        Returns the report configuration.

        The report configuration is automatically set up when the report is first created, and uses the global JFreeReport configuration as its parent.

        Specified by:
        getConfiguration in interface ReportStructureRoot
        Returns:
        the report configuration.
      • addStyleSheet

        public void addStyleSheet​(org.jfree.layouting.input.style.StyleSheet s)
      • removeStyleSheet

        public void removeStyleSheet​(org.jfree.layouting.input.style.StyleSheet s)
      • getStyleSheet

        public org.jfree.layouting.input.style.StyleSheet getStyleSheet​(int i)
      • getStyleSheetCount

        public int getStyleSheetCount()
      • setResourceManager

        public void setResourceManager​(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
      • setBaseResource

        public void setBaseResource​(org.pentaho.reporting.libraries.resourceloader.ResourceKey baseResource)
      • setPageFormat

        public void setPageFormat​(java.awt.print.PageFormat format)
      • getPageFormat

        public java.awt.print.PageFormat getPageFormat()
      • getEditableConfiguration

        public org.pentaho.reporting.libraries.base.config.ModifiableConfiguration getEditableConfiguration()
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        private ModifiableConfiguration reportConfiguration; private ArrayList styleSheets; private StyleSheet pageFormatStyleSheet; private CSSPageRule pageRule; private ReportParameters parameters; private ReportDataFactory dataFactory; private ResourceManager resourceManager; private ResourceKey baseResource;
        Overrides:
        clone in class Section
        Returns:
        Throws:
        java.lang.CloneNotSupportedException