org.jfree.report

Class JFreeReport

Implemented Interfaces:
Cloneable, ReportStructureRoot, Serializable

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.

Authors:
David Gilbert
Thomas Morgner

Field Summary

Fields inherited from class org.jfree.report.structure.Element

ID_ATTRIBUTE, NAMESPACE_ATTRIBUTE, NAME_ATTRIBUTE, TYPE_ATTRIBUTE, VIRTUAL_ATTRIBUTE

Constructor Summary

JFreeReport()
The default constructor.

Method Summary

void
addStyleSheet(StyleSheet s)
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;
ResourceKey
getBaseResource()
Configuration
getConfiguration()
Returns the report configuration.
ReportDataFactory
getDataFactory()
ModifiableConfiguration
getEditableConfiguration()
ReportParameters
getInputParameters()
Locale
getLocale()
PageFormat
getPageFormat()
ResourceManager
getResourceManager()
JFreeReport
getRootReport()
StyleSheet
getStyleSheet(int i)
int
getStyleSheetCount()
void
removeStyleSheet(StyleSheet s)
void
setBaseResource(ResourceKey baseResource)
void
setDataFactory(ReportDataFactory dataFactory)
void
setPageFormat(PageFormat format)
void
setResourceManager(ResourceManager resourceManager)

Methods inherited from class org.jfree.report.structure.ReportDefinition

getGroup, getQuery, getReport, setQuery

Methods inherited from class org.jfree.report.structure.Section

addNode, addNode, addNodes, addOperationAfter, addOperationBefore, clone, findFirstChild, getElementByName, getNode, getNodeArray, getNodeCount, getNodes, getOperationAfter, getOperationBefore, isRepeat, removeNode, setOperationAfter, setOperationBefore, setRepeat, toString

Methods inherited from class org.jfree.report.structure.Element

addExpression, clone, getAttribute, getAttribute, getAttributeExpression, getAttributeExpression, getAttributeExpressionMap, getAttributeExpressions, getAttributeMap, getAttributeNameSpaces, getAttributes, getDisplayCondition, getExpressions, getId, getLocale, getLocaleFromAttributes, getName, getNamespace, getStyle, getStyleExpression, getStyleExpressions, getType, getVisibility, isEnabled, isVirtual, setAttribute, setAttribute, setAttributeExpression, setAttributeExpression, setDisplayCondition, setEnabled, setExpressions, setId, setName, setNamespace, setStyleExpression, setType, setVirtual, setVisibility

Methods inherited from class org.jfree.report.structure.Node

clone, getDisplayCondition, getGroup, getLocale, getParent, getReport, getRootReport, isEnabled, setParent, updateParent

Constructor Details

JFreeReport

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

Method Details

addStyleSheet

public void addStyleSheet(StyleSheet s)

clone

public Object clone()
            throws 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 interface Section
Returns:

getBaseResource

public ResourceKey getBaseResource()
Specified by:
getBaseResource in interface ReportStructureRoot

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.

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

getDataFactory

public ReportDataFactory getDataFactory()
Specified by:
getDataFactory in interface ReportStructureRoot

getEditableConfiguration

public ModifiableConfiguration getEditableConfiguration()

getInputParameters

public ReportParameters getInputParameters()
Specified by:
getInputParameters in interface ReportStructureRoot

getLocale

public Locale getLocale()
Specified by:
getLocale in interface ReportStructureRoot
Overrides:
getLocale in interface Element

getPageFormat

public PageFormat getPageFormat()

getResourceManager

public ResourceManager getResourceManager()
Specified by:
getResourceManager in interface ReportStructureRoot

getRootReport

public JFreeReport getRootReport()
Overrides:
getRootReport in interface Node

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)