org.jfree.report

Class JFreeReport

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

Constructor Summary
JFreeReport()
The default constructor.
Method Summary
voidaddStyleSheet(StyleSheet s)
Objectclone()
private ModifiableConfiguration reportConfiguration; private ArrayList styleSheets; private StyleSheet pageFormatStyleSheet; private CSSPageRule pageRule; private ReportParameters parameters; private ReportDataFactory dataFactory; private ResourceManager resourceManager; private ResourceKey baseResource;
ResourceKeygetBaseResource()
ConfigurationgetConfiguration()
Returns the report configuration.
ReportDataFactorygetDataFactory()
ModifiableConfigurationgetEditableConfiguration()
ReportParametersgetInputParameters()
LocalegetLocale()
PageFormatgetPageFormat()
ResourceManagergetResourceManager()
JFreeReportgetRootReport()
StyleSheetgetStyleSheet(int i)
intgetStyleSheetCount()
voidremoveStyleSheet(StyleSheet s)
voidsetBaseResource(ResourceKey baseResource)
voidsetDataFactory(ReportDataFactory dataFactory)
voidsetPageFormat(PageFormat format)
voidsetResourceManager(ResourceManager resourceManager)

Constructor Detail

JFreeReport

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

Method Detail

addStyleSheet

public void addStyleSheet(StyleSheet s)

clone

public Object clone()
private ModifiableConfiguration reportConfiguration; private ArrayList styleSheets; private StyleSheet pageFormatStyleSheet; private CSSPageRule pageRule; private ReportParameters parameters; private ReportDataFactory dataFactory; private ResourceManager resourceManager; private ResourceKey baseResource;

Returns:

Throws: CloneNotSupportedException

getBaseResource

public ResourceKey getBaseResource()

getConfiguration

public 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.

Returns: the report configuration.

getDataFactory

public ReportDataFactory getDataFactory()

getEditableConfiguration

public ModifiableConfiguration getEditableConfiguration()

getInputParameters

public ReportParameters getInputParameters()

getLocale

public Locale getLocale()

getPageFormat

public PageFormat getPageFormat()

getResourceManager

public ResourceManager getResourceManager()

getRootReport

public JFreeReport getRootReport()

getStyleSheet

public StyleSheet getStyleSheet(int i)

getStyleSheetCount

public int getStyleSheetCount()

removeStyleSheet

public void removeStyleSheet(StyleSheet s)

setBaseResource

public void setBaseResource(ResourceKey baseResource)

setDataFactory

public void setDataFactory(ReportDataFactory dataFactory)

setPageFormat

public void setPageFormat(PageFormat format)

setResourceManager

public void setResourceManager(ResourceManager resourceManager)