public abstract class AbstractContentElementFactory extends ElementFactory
Drawable
elements.
A drawable field expects the named datasource to contain Drawable objects.
Once the desired properties are set, the factory can be reused to create similiar elements.Modifier and Type | Method and Description |
---|---|
Color |
getFillColor() |
Boolean |
getKeepAspectRatio()
Returns whether the generated image element should preserve the original aspect ratio of the image content during
scaling.
|
Boolean |
getScale()
Returns, whether the image content should be scaled to fit the complete image element bounds.
|
Boolean |
getShouldDraw()
Returns whether to draw the shape outline on report generation.
|
Boolean |
getShouldFill()
Return whether to fill the shape on report generation.
|
Stroke |
getStroke()
Returns the shapes stroke.
|
void |
setFillColor(Color fillColor) |
void |
setKeepAspectRatio(Boolean keepAspectRatio)
Defines whether the generated image element should preserve the original aspect ratio of the image content during
scaling.
|
void |
setScale(Boolean scale)
Defines, whether the image content should be scaled to fit the complete image element bounds.
|
void |
setShouldDraw(Boolean shouldDraw)
Defines whether to draw the shape outline on report generation.
|
void |
setShouldFill(Boolean shouldFill)
Defines wether to fill the shape on report generation.
|
void |
setStroke(Stroke stroke)
Defines the shapes stroke.
|
createElement, getAbsolutePosition, getAvoidPagebreaks, getBackgroundColor, getBorderBottomColor, getBorderBottomLeftRadius, getBorderBottomLeftRadiusHeight, getBorderBottomLeftRadiusWidth, getBorderBottomRightRadius, getBorderBottomRightRadiusHeight, getBorderBottomRightRadiusWidth, getBorderBottomStyle, getBorderBottomWidth, getBorderBreakColor, getBorderBreakStyle, getBorderBreakWidth, getBorderColor, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRadius, getBorderRadiusHeight, getBorderRadiusWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderStyle, getBorderTopColor, getBorderTopLeftRadius, getBorderTopLeftRadiusHeight, getBorderTopLeftRadiusWidth, getBorderTopRightRadius, getBorderTopRightRadiusHeight, getBorderTopRightRadiusWidth, getBorderTopStyle, getBorderTopWidth, getBorderWidth, getColor, getDynamicHeight, getFontSmooth, getHeight, getHorizontalAlignment, getHRefTarget, getHRefTitle, getHRefWindow, getLayoutCachable, getMaximumHeight, getMaximumSize, getMaximumWidth, getMinimumHeight, getMinimumSize, getMinimumWidth, getName, getOrphans, getOverflowX, getOverflowY, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPreferredSize, getUseMinChunkWidth, getVerticalAlignment, getVisible, getWidowOrphanOptOut, getWidows, getWidth, getX, getY, setAbsolutePosition, setAvoidPagebreaks, setBackgroundColor, setBorderBottomColor, setBorderBottomLeftRadius, setBorderBottomLeftRadiusHeight, setBorderBottomLeftRadiusWidth, setBorderBottomRightRadius, setBorderBottomRightRadiusHeight, setBorderBottomRightRadiusWidth, setBorderBottomStyle, setBorderBottomWidth, setBorderBreakColor, setBorderBreakStyle, setBorderBreakWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRadius, setBorderRadiusHeight, setBorderRadiusWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopLeftRadius, setBorderTopLeftRadiusHeight, setBorderTopLeftRadiusWidth, setBorderTopRightRadius, setBorderTopRightRadiusHeight, setBorderTopRightRadiusWidth, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setColor, setDynamicHeight, setFontSmooth, setHeight, setHorizontalAlignment, setHRefTarget, setHRefTitle, setHRefWindow, setLayoutCachable, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setName, setOrphans, setOverflowX, setOverflowY, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPreferredSize, setUseMinChunkWidth, setVerticalAlignment, setVisible, setWidowOrphanOptOut, setWidows, setWidth, setX, setY
public Boolean getScale()
public void setScale(Boolean scale)
scale
- the scale flag of the image element.public Boolean getKeepAspectRatio()
public void setKeepAspectRatio(Boolean keepAspectRatio)
keepAspectRatio
- whether to keep the aspect ratio of the image content during the scaling.public Stroke getStroke()
public void setStroke(Stroke stroke)
stroke
- the stoke.public Boolean getShouldFill()
public void setShouldFill(Boolean shouldFill)
shouldFill
- the fill flag.public Boolean getShouldDraw()
public void setShouldDraw(Boolean shouldDraw)
shouldDraw
- the draw shape flag.public Color getFillColor()
public void setFillColor(Color fillColor)