|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.elementfactory.ElementFactory
org.jfree.report.elementfactory.ShapeElementFactory
org.jfree.report.elementfactory.ShapeFieldElementFactory
A factory to define Shape field elements.
Constructor Summary | |
ShapeFieldElementFactory()
DefaultConstructor. |
Method Summary | |
Element |
createElement()
Creates the shape field element. |
static ShapeElement |
createShapeElement(java.lang.String name,
java.awt.geom.Rectangle2D bounds,
java.awt.Color paint,
java.awt.Stroke stroke,
java.lang.String fieldname,
boolean shouldDraw,
boolean shouldFill,
boolean shouldScale,
boolean keepAspectRatio)
Creates a new ShapeElement. |
java.lang.String |
getFieldname()
Returns the field name from where to read the content of the element. |
void |
setFieldname(java.lang.String fieldname)
Defines the field name from where to read the content of the element. |
Methods inherited from class org.jfree.report.elementfactory.ShapeElementFactory |
applyStyle, getColor, getKeepAspectRatio, getScale, getShouldDraw, getShouldFill, getStroke, setColor, setKeepAspectRatio, setScale, setShouldDraw, setShouldFill, setStroke |
Methods inherited from class org.jfree.report.elementfactory.ElementFactory |
applyElementName, getAbsolutePosition, getDynamicHeight, getMaximumSize, getMinimumSize, getName, getPreferredSize, setAbsolutePosition, setDynamicHeight, setMaximumSize, setMinimumSize, setName, setPreferredSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeFieldElementFactory()
Method Detail |
public java.lang.String getFieldname()
public void setFieldname(java.lang.String fieldname)
fieldname
- the field name.public Element createElement()
createElement
in class ElementFactory
java.lang.IllegalStateException
- if the fieldname is not defined.ElementFactory.createElement()
public static ShapeElement createShapeElement(java.lang.String name, java.awt.geom.Rectangle2D bounds, java.awt.Color paint, java.awt.Stroke stroke, java.lang.String fieldname, boolean shouldDraw, boolean shouldFill, boolean shouldScale, boolean keepAspectRatio)
name
- the name of the new element.bounds
- the bounds.paint
- the line color of this element.stroke
- the stroke of this shape. For pdf use, restrict to BasicStrokes.fieldname
- the fieldname from where to get the shape.shouldDraw
- draw the shape?shouldFill
- fill the shape?shouldScale
- scale the shape?keepAspectRatio
- preserve the aspect ratio?
java.lang.NullPointerException
- if bounds, name or shape are null
java.lang.IllegalArgumentException
- if the given alignment is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |