Class AbstractContentElementFactory

    • Constructor Detail

      • AbstractContentElementFactory

        protected AbstractContentElementFactory()
        DefaultConstructor.
    • Method Detail

      • getScale

        public Boolean getScale()
        Returns, whether the image content should be scaled to fit the complete image element bounds.
        Returns:
        the scale flag of the image element.
      • setScale

        public void setScale​(Boolean scale)
        Defines, whether the image content should be scaled to fit the complete image element bounds.
        Parameters:
        scale - the scale flag of the image element.
      • getKeepAspectRatio

        public Boolean getKeepAspectRatio()
        Returns whether the generated image element should preserve the original aspect ratio of the image content during scaling. This property has no effect if the image content is not scaled.
        Returns:
        the keep aspect ratio flag.
      • setKeepAspectRatio

        public void setKeepAspectRatio​(Boolean keepAspectRatio)
        Defines whether the generated image element should preserve the original aspect ratio of the image content during scaling. This property has no effect if the image content is not scaled.
        Parameters:
        keepAspectRatio - whether to keep the aspect ratio of the image content during the scaling.
      • getStroke

        public Stroke getStroke()
        Returns the shapes stroke. The stroke is used to draw the outline of the shape.
        Returns:
        the stoke.
      • setStroke

        public void setStroke​(Stroke stroke)
        Defines the shapes stroke. The stroke is used to draw the outline of the shape.
        Parameters:
        stroke - the stoke.
      • getShouldFill

        public Boolean getShouldFill()
        Return whether to fill the shape on report generation.
        Returns:
        the should fill flag.
      • setShouldFill

        public void setShouldFill​(Boolean shouldFill)
        Defines wether to fill the shape on report generation.
        Parameters:
        shouldFill - the fill flag.
      • getShouldDraw

        public Boolean getShouldDraw()
        Returns whether to draw the shape outline on report generation.
        Returns:
        the draw shape flag.
      • setShouldDraw

        public void setShouldDraw​(Boolean shouldDraw)
        Defines whether to draw the shape outline on report generation.
        Parameters:
        shouldDraw - the draw shape flag.
      • getFillColor

        public Color getFillColor()
      • setFillColor

        public void setFillColor​(Color fillColor)
      • applyStyle

        protected void applyStyle​(ElementStyleSheet style)
        Applies the style definition to the elements stylesheet.
        Overrides:
        applyStyle in class ElementFactory
        Parameters:
        style - the element stylesheet which should receive the style definition.