public abstract class JRFillElementContainer extends JRFillElementGroup implements FillContainerContext
This is the base for band, frame and crosstab cell fillers.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
atLeastOneElementIsToPrint |
protected JRFillElement[] |
deepElements |
protected Map<JRStyle,JRStyle> |
evaluatedStyles |
protected JRFillExpressionEvaluator |
expressionEvaluator |
protected JRBaseFiller |
filler |
protected boolean |
hasPrintWhenOverflowElement |
protected boolean |
isOverflow |
protected Set<JRStyle> |
stylesToEvaluate |
bottomElementInGroup, children, elementGroup, elements, topElementInGroup| Modifier | Constructor and Description |
|---|---|
protected |
JRFillElementContainer(JRBaseFiller filler,
JRElementGroup container,
JRFillObjectFactory factory) |
protected |
JRFillElementContainer(JRFillElementContainer container,
JRFillCloneFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_initElements()
Deprecated.
To be removed.
|
protected void |
_prepareElements(int availableHeight,
boolean isOverflowAllowed)
Deprecated.
To be removed.
|
protected void |
_removeBlankElements()
Deprecated.
To be removed.
|
protected void |
_setStretchHeight(int stretchHeight)
Deprecated.
To be removed.
|
protected void |
addSubElements(JRPrintElementContainer printContainer,
JRFillElement element,
Collection<? extends JRPrintElement> printElements) |
protected boolean |
buildConsolidatedStyle(JRStyle style,
byte evaluation,
StringBuilder code,
List<JRStyle> condStylesToApply) |
protected int |
calculateStretchHeight() |
protected void |
collectConditionalStyle(JRStyle style) |
protected void |
evaluate(byte evaluation) |
protected JRStyle |
evaluateConditionalStyle(JRStyle initialStyle,
byte evaluation) |
protected void |
evaluateConditionalStyles(byte evaluation) |
void |
fillElements(JRPrintElementContainer printContainer)
Fills the elements from this container into a print element container.
|
protected abstract int |
getActualContainerHeight()
Returns the actual height of the element container.
|
protected abstract int |
getContainerHeight()
Returns the height of the element container.
|
JRStyle |
getEvaluatedConditionalStyle(JRStyle parentStyle) |
protected int |
getFirstY() |
protected int |
getStretchHeight() |
protected void |
initConditionalStyles()
Find all styles containing conditional styles which are referenced by elements in this band.
|
protected void |
initDeepElements() |
protected void |
initElements() |
protected void |
initFill() |
boolean |
isCurrentOverflow() |
boolean |
isCurrentOverflowAllowed() |
boolean |
isLegacyElementStretchEnabled() |
protected void |
moveBandBottomElements() |
protected void |
prepareElements(int availableHeight,
boolean isOverflowAllowed) |
protected void |
prepareStretchHeight(int availableHeight,
boolean isOverflowAllowed) |
protected void |
removeBlankElements() |
protected void |
resetElements() |
protected void |
rewind() |
protected void |
setElementOriginProvider(JROriginProvider originProvider) |
protected void |
setStretchHeight(int stretchHeight) |
protected void |
stretchElements()
This method is deprecated and is going to be removed.
|
protected void |
stretchElementsToContainer() |
protected void |
stretchElementsToElementGroup() |
boolean |
willOverflow()
Indicates whether the elements in this container will overflow.
|
clone, clone, createClone, getChildren, getElementByKey, getElementGroup, getElements, getStretchHeightDiff, reset, visitprotected JRBaseFiller filler
protected boolean isOverflow
protected boolean atLeastOneElementIsToPrint
protected final JRFillExpressionEvaluator expressionEvaluator
protected JRFillElement[] deepElements
protected boolean hasPrintWhenOverflowElement
protected JRFillElementContainer(JRBaseFiller filler, JRElementGroup container, JRFillObjectFactory factory)
protected JRFillElementContainer(JRFillElementContainer container, JRFillCloneFactory factory)
protected void initDeepElements()
protected final void _initElements()
protected final void initElements()
protected void evaluate(byte evaluation)
throws JRException
JRExceptionprotected void resetElements()
public boolean willOverflow()
protected void initFill()
protected void _prepareElements(int availableHeight,
boolean isOverflowAllowed)
throws JRException
JRExceptionprotected void prepareElements(int availableHeight,
boolean isOverflowAllowed)
throws JRException
JRExceptionprotected void prepareStretchHeight(int availableHeight,
boolean isOverflowAllowed)
throws JRException
JRExceptionprotected int calculateStretchHeight()
throws JRException
JRExceptionpublic boolean isLegacyElementStretchEnabled()
public boolean isCurrentOverflow()
isCurrentOverflow in interface FillContainerContextpublic boolean isCurrentOverflowAllowed()
isCurrentOverflowAllowed in interface FillContainerContextprotected void _setStretchHeight(int stretchHeight)
protected void stretchElements()
protected void setStretchHeight(int stretchHeight)
protected void stretchElementsToElementGroup()
protected void stretchElementsToContainer()
protected int getStretchHeight()
protected void moveBandBottomElements()
protected void _removeBlankElements()
protected void removeBlankElements()
public void fillElements(JRPrintElementContainer printContainer) throws JRException
printContainer - the print element containerJRExceptionprotected void addSubElements(JRPrintElementContainer printContainer, JRFillElement element, Collection<? extends JRPrintElement> printElements)
protected void rewind()
throws JRException
JRExceptionprotected int getFirstY()
protected abstract int getActualContainerHeight()
protected abstract int getContainerHeight()
protected void initConditionalStyles()
protected void collectConditionalStyle(JRStyle style)
protected void evaluateConditionalStyles(byte evaluation)
throws JRException
JRExceptionprotected JRStyle evaluateConditionalStyle(JRStyle initialStyle, byte evaluation) throws JRException
JRExceptionprotected boolean buildConsolidatedStyle(JRStyle style, byte evaluation, StringBuilder code, List<JRStyle> condStylesToApply) throws JRException
JRExceptionprotected final void setElementOriginProvider(JROriginProvider originProvider)
Copyright © 2017. All rights reserved.