|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.content.DefaultContentFactory
The DefaultContentFactory provides a default implementation for output targets, which support all known content types.
The implementation provides support for text
, image
and shape
content.
Constructor Summary | |
DefaultContentFactory()
Creates an empty DefaultContentFactory. |
Method Summary | |
void |
addModule(ContentFactoryModule module)
Adds a content factory module to the factory. |
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. |
void |
removeModule(ContentFactoryModule module)
Removes a content factory module from this factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultContentFactory()
Method Detail |
public void addModule(ContentFactoryModule module)
module
- the ContentFactoryModule that should be added to the list of
available modules.public void removeModule(ContentFactoryModule module)
module
- removes a ContentFactoryModules from the list of available
modules.public Content createContentForElement(Element e, ElementLayoutInformation bounds, LayoutSupport ot) throws ContentCreationException
createContentForElement
in interface ContentFactory
e
- the element.bounds
- the bounds.ot
- the output target.
ContentCreationException
- if there is a problem with the OutputTarget or
this factory is not able to handle this content type.public boolean canHandleContent(java.lang.String contentType)
true
if the module can handle the specified content type, and
false
otherwise. Delegates the request to the registered modules.
Returns false, if this factory is not able to handle this content type.
canHandleContent
in interface ContentFactory
contentType
- the content type.
true
or false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |