Package net.sf.jasperreports.engine
Interface JRCommonGraphicElement
- All Superinterfaces:
JRCommonElement,JRPenContainer,JRStyleContainer
- All Known Subinterfaces:
JRCommonImage,JREllipse,JRGraphicElement,JRImage,JRLine,JRPrintEllipse,JRPrintGraphicElement,JRPrintImage,JRPrintLine,JRPrintRectangle,JRRectangle
- All Known Implementing Classes:
ChartTemplateImage,JRBaseEllipse,JRBaseGraphicElement,JRBaseImage,JRBaseLine,JRBasePrintEllipse,JRBasePrintGraphicElement,JRBasePrintImage,JRBasePrintLine,JRBasePrintRectangle,JRBaseRectangle,JRDesignEllipse,JRDesignGraphicElement,JRDesignImage,JRDesignLine,JRDesignRectangle,JRFillEllipse,JRFillGraphicElement,JRFillImage,JRFillLine,JRFillRectangle,JRRecordedValuesPrintImage,JRTemplateEllipse,JRTemplateGraphicElement,JRTemplateImage,JRTemplateLine,JRTemplatePrintEllipse,JRTemplatePrintGraphicElement,JRTemplatePrintImage,JRTemplatePrintLine,JRTemplatePrintRectangle,JRTemplateRectangle
An abstract representation of a report graphic element. It provides basic functionality for images, lines, rectangles
and ellipses.
Graphic elements are the second major category of report elements. This category
includes lines, rectangles, ellipses and images. They all have some properties in common, which
are grouped under the attributes of the
<graphicElement> tag.
Background Fill Style
Thefill attribute specifies the style of the background of the graphic elements. The
only style currently supported is the solid fill style, which is also the default
(fill="Solid"). The getFill() method can
be used to access the fill setting.
Line Settings
Other common settings for graphic elements are the line width, line style and the line color. These are grouped together into the<pen> tag and can be accessed using the getLinePen()
method.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetFill()Indicates the fill type used for this element.Indicates the own fill type used for this element.voidSets the fill type used for this element.Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getWidth, setBackcolor, setForecolor, setModeMethods inherited from interface net.sf.jasperreports.engine.JRPenContainer
getDefaultLineColor, getDefaultLineWidthMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Method Details
-
getLinePen
JRPen getLinePen() -
getFill
FillEnum getFill()Indicates the fill type used for this element.- Returns:
- a value representing one of the fill type constants in
FillEnum
-
getOwnFill
FillEnum getOwnFill()Indicates the own fill type used for this element.- Returns:
- a value representing one of the fill type constants in
FillEnum
-
setFill
Sets the fill type used for this element.- Parameters:
fillEnum- a value representing one of the line direction constants inFillEnum
-