|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.report.content.DrawableContent
A simple wrapper around the DrawableContainer. The ContentImplementation is able to adjust the Clipping Bounds of the DrawableContainer.
| Constructor Summary | |
DrawableContent(DrawableContainer drawable,
java.awt.geom.Point2D contentOrigin)
Creates a new instance. |
|
| Method Summary | |
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounds for the content. |
DrawableContainer |
getContent()
Returns the content. |
Content |
getContentForBounds(java.awt.geom.Rectangle2D bounds)
Returns the content for the given bounds. |
Content |
getContentPart(int part)
Returns a sub-content item. |
int |
getContentPartCount()
Returns the number of sub-content items for this item. |
ContentType |
getContentType()
Returns the content type (the types include TEXT, IMAGE,
SHAPE and CONTAINER). |
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 |
public DrawableContent(DrawableContainer drawable,
java.awt.geom.Point2D contentOrigin)
drawable - the drawable object.contentOrigin - the origin.| Method Detail |
public ContentType getContentType()
TEXT, IMAGE,
SHAPE and CONTAINER).
getContentType in interface Contentpublic java.awt.geom.Rectangle2D getBounds()
getBounds in interface Contentpublic java.awt.geom.Rectangle2D getMinimumContentSize()
getMinimumContentSize in interface Contentpublic Content getContentForBounds(java.awt.geom.Rectangle2D bounds)
This method returns null if there is no content in these bounds.
getContentForBounds in interface Contentbounds - the bounds.
null).public int getContentPartCount()
Only subclasses of ContentContainer will
return non-zero results.
getContentPartCount in interface Contentpublic Content getContentPart(int part)
getContentPart in interface Contentpart - the sub-content index (zero-based).
public DrawableContainer getContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||