org.jfree.report.demo.world
Class CountryReportAPIDemoHandler

java.lang.Object
  |
  +--org.jfree.report.demo.helper.AbstractDemoHandler
        |
        +--org.jfree.report.demo.world.CountryReportAPIDemoHandler

public class CountryReportAPIDemoHandler
extends AbstractDemoHandler

This creates a report similar to the one defined by report1.xml.

Author:
Thomas Morgner

Constructor Summary
CountryReportAPIDemoHandler()
          Default constructor.
 
Method Summary
 JFreeReport createReport()
          Creates the report.
 java.net.URL getDemoDescriptionSource()
          Returns the URL of the HTML document describing this demo.
 java.lang.String getDemoName()
          Returns the display name of the demo.
 javax.swing.JComponent getPresentationComponent()
          Returns the presentation component for this demo.
static void main(java.lang.String[] args)
          Runs this report and shows a preview dialog.
 
Methods inherited from class org.jfree.report.demo.helper.AbstractDemoHandler
createDefaultTable, getControler, getPreviewHandler, setControler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountryReportAPIDemoHandler

public CountryReportAPIDemoHandler()
Default constructor.
Method Detail

getDemoName

public java.lang.String getDemoName()
Description copied from interface: InternalDemoHandler
Returns the display name of the demo.
Tags copied from interface: InternalDemoHandler
Returns:
the name.

getDemoDescriptionSource

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

getPresentationComponent

public javax.swing.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.
Tags copied from interface: InternalDemoHandler
Returns:
the presentation component, never null.

createReport

public JFreeReport createReport()
Creates the report.
Returns:
the constructed report.
Throws:
FunctionInitializeException - if there was a problem initialising any of the functions.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Runs this report and shows a preview dialog.
Parameters:
args - the arguments (ignored).
Throws:
java.lang.Exception - if an error occurs (default: print a stack trace)