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 |
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, visit
protected 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 final void initElements()
protected void evaluate(byte evaluation) throws JRException
JRException
protected void resetElements()
public boolean willOverflow()
protected void initFill()
protected void prepareElements(int availableHeight, boolean isOverflowAllowed) throws JRException
JRException
public boolean isCurrentOverflow()
isCurrentOverflow
in interface FillContainerContext
public boolean isCurrentOverflowAllowed()
isCurrentOverflowAllowed
in interface FillContainerContext
protected 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 containerJRException
protected void addSubElements(JRPrintElementContainer printContainer, JRFillElement element, Collection<? extends JRPrintElement> printElements)
protected void rewind() throws JRException
JRException
protected int getFirstY()
protected abstract int getContainerHeight()
protected void initConditionalStyles()
protected void collectConditionalStyle(JRStyle style)
protected void evaluateConditionalStyles(byte evaluation) throws JRException
JRException
protected JRStyle evaluateConditionalStyle(JRStyle initialStyle, byte evaluation) throws JRException
JRException
protected boolean buildConsolidatedStyle(JRStyle style, byte evaluation, StringBuffer code, List<JRStyle> condStylesToApply) throws JRException
JRException
protected final void setElementOriginProvider(JROriginProvider originProvider)
Copyright © 2013. All Rights Reserved.