org.jfree.report.content
Class ImageContent

java.lang.Object
  extended byorg.jfree.report.content.ImageContent
All Implemented Interfaces:
Content

public class ImageContent
extends java.lang.Object
implements Content

Image content.

Author:
Thomas Morgner.

Constructor Summary
ImageContent(ImageReference ref, java.awt.geom.Rectangle2D bounds)
          Creates a new image content.
 
Method Summary
 java.awt.geom.Rectangle2D getBounds()
          Returns the content bounds.
 ImageReference getContent()
          Returns the image contents.
 Content getContentForBounds(java.awt.geom.Rectangle2D bounds)
          Returns content that falls within the specified bounds.
 Content getContentPart(int part)
          This class does not store sub-content items, so this method always returns null.
 int getContentPartCount()
          This class does not store sub-content items, so this method always returns zero.
 ContentType getContentType()
          Returns the content type, in this case ContentType.IMAGE.
 java.awt.geom.Rectangle2D getMinimumContentSize()
          Returns the minimum content size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageContent

public ImageContent(ImageReference ref,
                    java.awt.geom.Rectangle2D bounds)
Creates a new image content.

Parameters:
ref - the image reference.
bounds - the content bounds.
Method Detail

getContentType

public ContentType getContentType()
Returns the content type, in this case ContentType.IMAGE.

Specified by:
getContentType in interface Content
Returns:
the content type.

getContentPartCount

public int getContentPartCount()
This class does not store sub-content items, so this method always returns zero.

Specified by:
getContentPartCount in interface Content
Returns:
always zero, image content does never contains multiple parts.

getContentPart

public Content getContentPart(int part)
This class does not store sub-content items, so this method always returns null.

Specified by:
getContentPart in interface Content
Parameters:
part - ignored.
Returns:
null.

getBounds

public java.awt.geom.Rectangle2D getBounds()
Returns the content bounds.

Specified by:
getBounds in interface Content
Returns:
the content bounds.

getContentForBounds

public Content getContentForBounds(java.awt.geom.Rectangle2D bounds)
Returns content that falls within the specified bounds.

Specified by:
getContentForBounds in interface Content
Parameters:
bounds - the bounds.
Returns:
the content.

getContent

public ImageReference getContent()
Returns the image contents.

Returns:
the image.

getMinimumContentSize

public java.awt.geom.Rectangle2D getMinimumContentSize()
Returns the minimum content size.

Specified by:
getMinimumContentSize in interface Content
Returns:
the minimum content size.