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 JRFillElement[] |
deepElements |
protected Map<JRStyle,JRStyle> |
evaluatedStyles |
protected JRFillExpressionEvaluator |
expressionEvaluator |
protected JRBaseFiller |
filler |
protected JRFillElement |
firstYElement |
protected boolean |
hasPrintWhenOverflowElement |
protected boolean |
isOverflow |
protected Set<JRStyle> |
stylesToEvaluate |
children, elementGroup, elements| 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 |
addSubElements(JRPrintElementContainer printContainer,
JRFillElement element,
Collection<? extends JRPrintElement> printElements) |
protected boolean |
buildConsolidatedStyle(JRStyle style,
byte evaluation,
StringBuffer code,
List<JRStyle> condStylesToApply) |
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 |
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() |
protected void |
moveBandBottomElements() |
protected void |
prepareElements(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() |
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 JRFillElement firstYElement
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 void evaluate(byte evaluation)
throws JRException
JRExceptionprotected void resetElements()
public boolean willOverflow()
protected void initFill()
protected void prepareElements(int availableHeight,
boolean isOverflowAllowed)
throws JRException
JRExceptionpublic boolean isCurrentOverflow()
isCurrentOverflow in interface FillContainerContextpublic boolean isCurrentOverflowAllowed()
isCurrentOverflowAllowed in interface FillContainerContextprotected void setStretchHeight(int stretchHeight)
protected void stretchElements()
protected int getStretchHeight()
protected void moveBandBottomElements()
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 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, StringBuffer code, List<JRStyle> condStylesToApply) throws JRException
JRExceptionprotected final void setElementOriginProvider(JROriginProvider originProvider)
Copyright © 2014. All rights reserved.