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

public interface JRCommonGraphicElement extends JRCommonElement, JRPenContainer
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

The fill 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 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

      void setFill(FillEnum fillEnum)
      Sets the fill type used for this element.
      Parameters:
      fillEnum - a value representing one of the line direction constants in FillEnum