com.jrefinery.report.elementfactory
Class ShapeFieldElementFactory
java.lang.Object
com.jrefinery.report.elementfactory.ElementFactory
com.jrefinery.report.elementfactory.ShapeElementFactory
com.jrefinery.report.elementfactory.ShapeFieldElementFactory
- public class ShapeFieldElementFactory
- extends ShapeElementFactory
|
Method Summary |
Element |
createElement()
|
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()
|
void |
setFieldname(java.lang.String fieldname)
|
| Methods inherited from class com.jrefinery.report.elementfactory.ShapeElementFactory |
getColor, getKeepAspectRatio, getScale, getShouldDraw, getShouldFill, getStroke, setColor, setKeepAspectRatio, setScale, setShouldDraw, setShouldFill, setStroke |
| Methods inherited from class com.jrefinery.report.elementfactory.ElementFactory |
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 |
ShapeFieldElementFactory
public ShapeFieldElementFactory()
getFieldname
public java.lang.String getFieldname()
setFieldname
public void setFieldname(java.lang.String fieldname)
createElement
public Element createElement()
- Specified by:
createElement in class ElementFactory
createShapeElement
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)
- Creates a new ShapeElement.
- Parameters:
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?
- Returns:
- a report element for drawing a line.
- Throws:
java.lang.NullPointerException - if bounds, name or shape are null
java.lang.IllegalArgumentException - if the given alignment is invalid