org.jfree.report.content
Interface ContentFactory

All Known Implementing Classes:
DefaultContentFactory

public interface ContentFactory

The content factory is resopnsible for creating content from a given element and the rawdata contained in the element's datasource.

Author:
Thomas Morgner

Method Summary
 boolean canHandleContent(java.lang.String contentType)
          Returns true if the module can handle the specified content type, and false otherwise.
 Content createContentForElement(Element e, ElementLayoutInformation bounds, LayoutSupport ot)
          Creates content for an element.
 

Method Detail

canHandleContent

public boolean canHandleContent(java.lang.String contentType)
Returns true if the module can handle the specified content type, and false otherwise.

Parameters:
contentType - the content type.
Returns:
true or false.

createContentForElement

public Content createContentForElement(Element e,
                                       ElementLayoutInformation bounds,
                                       LayoutSupport ot)
                                throws ContentCreationException
Creates content for an element.

Parameters:
e - the element.
bounds - the bounds.
ot - the output target.
Returns:
the content.
Throws:
ContentCreationException - if there is a problem with the Content creation.