Class JRTemplateRectangle

    • Constructor Detail

      • JRTemplateRectangle

        public JRTemplateRectangle​(JROrigin origin,
                                   JRDefaultStyleProvider defaultStyleProvider)
        Creates a template rectangle.
        Parameters:
        origin - the origin of the elements that will use this template
        defaultStyleProvider - the default style provider to use for this template
    • Method Detail

      • setRectangle

        protected void setRectangle​(JRRectangle rectangle)
      • setSubreport

        protected void setSubreport​(JRSubreport subreport)
      • getRadius

        public int getRadius()
        Description copied from interface: JRCommonRectangle
        Indicates the corner radius for rectangles with round corners. The default is 0.
        Specified by:
        getRadius in interface JRCommonRectangle
      • getHashCode

        public int getHashCode()
        Description copied from interface: Deduplicable
        Returns a hash code to be used for the deduplicate map. The returned hash code should be consitent wiwh Deduplicable.isIdentical(Object), i.e. if two objects are identical they should have the same hash code.
        Specified by:
        getHashCode in interface Deduplicable
        Returns:
        deduplication hash code
      • isIdentical

        public boolean isIdentical​(Object object)
        Description copied from interface: Deduplicable
        Determines if this instance is identical to another object.
        Specified by:
        isIdentical in interface Deduplicable
        Parameters:
        object - the object to compare with this instance
        Returns:
        true if the two objects are identical and can be deduplicated