|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.content.ShapeContent
A report content item that encapsulates a Shape
object.
Constructor Summary | |
ShapeContent(java.awt.Shape s)
Creates a new shape content. |
|
ShapeContent(java.awt.Shape s,
java.awt.geom.Rectangle2D bounds)
Creates a new shape content. |
Method Summary | |
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounds for the content. |
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.SHAPE . |
java.awt.geom.Rectangle2D |
getMinimumContentSize()
Returns the minimum content size. |
java.awt.Shape |
getShape()
Returns the shape. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeContent(java.awt.Shape s)
s
- the shape.public ShapeContent(java.awt.Shape s, java.awt.geom.Rectangle2D bounds)
s
- the shape.bounds
- the bounds.Method Detail |
public ContentType getContentType()
ContentType.SHAPE
.
getContentType
in interface Content
public java.awt.Shape getShape()
public java.awt.geom.Rectangle2D getBounds()
getBounds
in interface Content
public java.awt.geom.Rectangle2D getMinimumContentSize()
getMinimumContentSize
in interface Content
public int getContentPartCount()
getContentPartCount
in interface Content
public Content getContentPart(int part)
null
.
getContentPart
in interface Content
part
- ignored.
null
.public Content getContentForBounds(java.awt.geom.Rectangle2D bounds)
getContentForBounds
in interface Content
bounds
- the bounds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |