org.jfree.report.content
Interface ContentFactoryModule

All Known Implementing Classes:
DrawableContentFactoryModule, ImageContentFactoryModule, ShapeContentFactoryModule, TextContentFactoryModule

public interface ContentFactoryModule

The ContentFactoryModule is a delegator for the DefaultContentFactory. This module is able to create a certain content type from the given element's data.

Author:
Thomas Morgner
See Also:
DefaultContentFactory

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.