Class JRFillElementContainer

    • Field Detail

      • willOverflowWithElements

        protected boolean willOverflowWithElements
      • willOverflowWithWhiteSpace

        protected boolean willOverflowWithWhiteSpace
      • isOverflow

        protected boolean isOverflow
      • currentOverflowWithElements

        protected boolean currentOverflowWithElements
      • currentOverflowWithWhiteSpace

        protected boolean currentOverflowWithWhiteSpace
      • atLeastOneElementIsToPrint

        protected boolean atLeastOneElementIsToPrint
      • stylesToEvaluate

        protected java.util.Set<JRStyle> stylesToEvaluate
      • evaluatedStyles

        protected java.util.Map<JRStyle,​JRStyle> evaluatedStyles
      • hasPrintWhenOverflowElement

        protected boolean hasPrintWhenOverflowElement
    • Method Detail

      • initDeepElements

        protected void initDeepElements()
      • _initElements

        protected final void _initElements()
        Deprecated.
        To be removed.
      • initElements

        protected final void initElements()
      • resetElements

        protected void resetElements()
      • willOverflow

        public boolean willOverflow()
        Indicates whether the elements in this container will overflow.
        Returns:
        whether this container will overflow
      • initFill

        protected void initFill()
      • _prepareElements

        protected void _prepareElements​(int availableHeight,
                                        boolean isOverflowAllowed)
                                 throws JRException
        Deprecated.
        To be removed.
        Throws:
        JRException
      • prepareElements

        protected void prepareElements​(int availableHeight,
                                       boolean isOverflowAllowed)
                                throws JRException
        Throws:
        JRException
      • prepareStretchHeight

        protected void prepareStretchHeight​(int availableHeight,
                                            boolean isOverflowAllowed)
                                     throws JRException
        Throws:
        JRException
      • isLegacyElementStretchEnabled

        public boolean isLegacyElementStretchEnabled()
      • _setStretchHeight

        protected void _setStretchHeight​(int stretchHeight)
        Deprecated.
        To be removed.
      • stretchElements

        protected void stretchElements()
        This method is deprecated and is going to be removed. Not marked as deprecated to avoid deprecation warnings.
      • setStretchHeight

        protected void setStretchHeight​(int stretchHeight)
      • stretchElementsToElementGroup

        protected void stretchElementsToElementGroup()
      • stretchElementsToContainer

        protected void stretchElementsToContainer()
      • getStretchHeight

        protected int getStretchHeight()
      • moveBandBottomElements

        protected void moveBandBottomElements()
      • _removeBlankElements

        protected void _removeBlankElements()
        Deprecated.
        To be removed.
      • removeBlankElements

        protected void removeBlankElements()
      • fillElements

        public void fillElements​(JRPrintElementContainer printContainer)
                          throws JRException
        Fills the elements from this container into a print element container.
        Parameters:
        printContainer - the print element container
        Throws:
        JRException
      • getFirstY

        protected int getFirstY()
      • getActualContainerHeight

        protected abstract int getActualContainerHeight()
        Returns the actual height of the element container. Some element containers such as frames have a larger calculated container height, resulting from content being placed beyond container declared height.
        Returns:
        the height of the element container
      • getContainerHeight

        protected abstract int getContainerHeight()
        Returns the height of the element container.
        Returns:
        the height of the element container
      • initConditionalStyles

        protected void initConditionalStyles()
        Find all styles containing conditional styles which are referenced by elements in this band.
      • collectConditionalStyle

        protected void collectConditionalStyle​(JRStyle style)
      • evaluateConditionalStyles

        protected void evaluateConditionalStyles​(byte evaluation)
                                          throws JRException
        Throws:
        JRException
      • buildConsolidatedStyle

        protected boolean buildConsolidatedStyle​(JRStyle style,
                                                 byte evaluation,
                                                 java.lang.StringBuilder code,
                                                 java.util.List<JRStyle> condStylesToApply)
                                          throws JRException
        Throws:
        JRException
      • getEvaluatedConditionalStyle

        public JRStyle getEvaluatedConditionalStyle​(JRStyle parentStyle)
      • setElementOriginProvider

        protected final void setElementOriginProvider​(JROriginProvider originProvider)