org.jfree.report.content
Class DrawableContentFactoryModule

java.lang.Object
  extended byorg.jfree.report.content.DrawableContentFactoryModule
All Implemented Interfaces:
ContentFactoryModule

public class DrawableContentFactoryModule
extends java.lang.Object
implements ContentFactoryModule

A factory module for drawable content.

Author:
Thomas Morgner.

Constructor Summary
DrawableContentFactoryModule()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawableContentFactoryModule

public DrawableContentFactoryModule()
Method Detail

canHandleContent

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

Specified by:
canHandleContent in interface ContentFactoryModule
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.

Specified by:
createContentForElement in interface ContentFactoryModule
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.