Class SwingIconsDemo

  • All Implemented Interfaces:
    DemoHandler, InternalDemoHandler, XmlDemoHandler

    public class SwingIconsDemo
    extends AbstractXmlDemoHandler
    A demonstration application.

    This demo is written up in the JFreeReport PDF Documentation. Please notify David Gilbert (david.gilbert@object-refinery.com) if you need to make changes to this file.

    To run this demo, you need to have the Java Look and Feel Icons jar file on your classpath.

    Author:
    David Gilbert
    • Constructor Detail

      • SwingIconsDemo

        public SwingIconsDemo()
        Constructs the demo application.
    • Method Detail

      • getPresentationComponent

        public JComponent getPresentationComponent()
        Description copied from interface: InternalDemoHandler
        Returns the presentation component for this demo. This component is shown before the real report generation is started. Ususally it contains a JTable with the demo data and/or input components, which allow to configure the report.
        Returns:
        the presentation component, never null.
      • getDemoName

        public String getDemoName()
        Description copied from interface: InternalDemoHandler
        Returns the display name of the demo.
        Returns:
        the name.
      • getDemoDescriptionSource

        public URL getDemoDescriptionSource()
        Description copied from interface: InternalDemoHandler
        Returns the URL of the HTML document describing this demo.
        Returns:
        the demo description.
      • getReportDefinitionSource

        public URL getReportDefinitionSource()
        Description copied from interface: XmlDemoHandler
        Returns the URL of the XML definition for this report.
        Returns:
        the URL of the report definition.
      • createReport

        public org.pentaho.reporting.engine.classic.core.MasterReport createReport()
                                                                            throws ReportDefinitionException
        Description copied from interface: InternalDemoHandler
        Creates the report. For XML reports, this will most likely call the ReportGenerator, while API reports may use this function to build and return a new, fully initialized report object.
        Returns:
        the fully initialized JFreeReport object.
        Throws:
        ReportDefinitionException - if an error occured preventing the report definition.