org.jfree.report.content
Class ImageContentFactoryModule

java.lang.Object
  |
  +--org.jfree.report.content.ImageContentFactoryModule

public class ImageContentFactoryModule
extends java.lang.Object
implements ContentFactoryModule

The ImageContentFactoryModule creates image content from the given element. The content type of the used element should fit "image/*".

Author:
Thomas Morgner

Field Summary
static float CORRECTION_FACTOR_POINT_TO_PX
           
static float CORRECTION_FACTOR_PX_TO_POINT
           
 
Constructor Summary
ImageContentFactoryModule()
          DefaultConstructor.
 
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 a content wrapper for the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CORRECTION_FACTOR_PX_TO_POINT

public static final float CORRECTION_FACTOR_PX_TO_POINT

CORRECTION_FACTOR_POINT_TO_PX

public static final float CORRECTION_FACTOR_POINT_TO_PX
Constructor Detail

ImageContentFactoryModule

public ImageContentFactoryModule()
DefaultConstructor.
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)
Creates a content wrapper for the element.
Specified by:
createContentForElement in interface ContentFactoryModule
Parameters:
e - the element.
bounds - the bounds.
ot - the output target.
Returns:
the content.