Package net.sf.jasperreports.engine.fill
Class JRFillBand
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFillElementGroup
-
- net.sf.jasperreports.engine.fill.JRFillElementContainer
-
- net.sf.jasperreports.engine.fill.JRFillBand
-
- All Implemented Interfaces:
java.lang.Cloneable,FillContainerContext,JRFillCloneable,JROriginProvider,JRBand,JRChild,JRCloneable,JRElementGroup,JRPropertiesHolder,JRVisitable
public class JRFillBand extends JRFillElementContainer implements JRBand, JROriginProvider
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected JROriginorigin-
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElementContainer
atLeastOneElementIsToPrint, currentOverflowWithElements, currentOverflowWithWhiteSpace, deepElements, evaluatedStyles, expressionEvaluator, filler, hasPrintWhenOverflowElement, isOverflow, stylesToEvaluate, willOverflowWithElements, willOverflowWithWhiteSpace
-
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElementGroup
bottomElementInGroup, children, elementGroup, elements, topElementInGroup
-
Fields inherited from interface net.sf.jasperreports.engine.JRBand
PROPERTY_SPLIT_TYPE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRFillBand(JRBaseFiller filler, JRBand band, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddNowEvaluationTime(JREvaluationTime evaluationTime)protected voidaddNowEvaluationTimes(JREvaluationTime[] evaluationTimes)protected voidevaluate(byte evaluation)protected voidevaluatePrintWhenExpression(byte evaluation)protected JRPrintBandfill()protected JRPrintBandfill(int availableHeight)protected JRPrintBandfill(int availableHeight, boolean isOverflowAllowed)protected intgetActualContainerHeight()Returns the actual height of the element container.intgetBreakHeight()protected intgetContainerHeight()Returns the height of the element container.intgetHeight()protected intgetId()JROrigingetOrigin()Returns an element origin.JRPropertiesHoldergetParentProperties()Returns the parent properties holder, whose properties are used as defaults for this object.JRExpressiongetPrintWhenExpression()Returns the boolean expression that specifies if the band will be displayed.JRPropertiesMapgetPropertiesMap()Returns this object's properties map.java.util.List<ExpressionReturnValue>getReturnValues()Returns the list of values to increment report variables with.SplitTypeEnumgetSplitTypeValue()Specifies the band split behavior.booleanhasProperties()Checks whether the object has any properties.protected booleanisColumnBand()protected booleanisEmpty()protected booleanisFirstWholeOnPageColumn()Decides whether this band is the for whole band on the page/column.protected booleanisNewGroup(JRGroup group)protected booleanisNewPageColumn()protected booleanisNowEvaluationTime(JREvaluationTime evaluationTime)protected booleanisPageBreakInhibited()protected booleanisPrintWhenExpressionNull()protected booleanisPrintWhenTrue()protected booleanisSplitPrevented()protected booleanisSplitTypePreventInhibited()booleanisSplitTypePreventInhibited(boolean isTopLevelCall)protected booleanisToPrint()protected booleanisVariableUsedInReturns(java.lang.String variableName)protected JRPrintBandrefill(byte evaluation, int availableHeight)voidregisterReturnValues(FillReturnValues fillReturnValues)protected voidresetSavedVariables()protected voidrestoreSavedVariables()protected voidsaveVariable(java.lang.String variableName)protected voidsetNewGroup(JRGroup group, boolean isNew)protected voidsetNewPageColumn(boolean isNew)protected voidsetOrigin(JROrigin origin)protected voidsetPrintWhenTrue(boolean isPrintWhenTrue)voidsetSplitType(SplitTypeEnum splitType)protected booleanwillOverflowWithElements()-
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElementContainer
_initElements, _prepareElements, _removeBlankElements, _setStretchHeight, addSubElements, buildConsolidatedStyle, calculateStretchHeight, collectConditionalStyle, evaluateConditionalStyle, evaluateConditionalStyles, fillElements, getEvaluatedConditionalStyle, getFirstY, getStretchHeight, initConditionalStyles, initDeepElements, initElements, initFill, isCurrentOverflow, isCurrentOverflowAllowed, isLegacyElementStretchEnabled, moveBandBottomElements, prepareElements, prepareStretchHeight, removeBlankElements, resetElements, rewind, setElementOriginProvider, setStretchHeight, stretchElements, stretchElementsToContainer, stretchElementsToElementGroup, willOverflow
-
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElementGroup
clone, clone, createClone, getChildren, getElementByKey, getElementGroup, getElements, getStretchHeightDiff, reset, visit
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
Methods inherited from interface net.sf.jasperreports.engine.JRElementGroup
getChildren, getElementByKey, getElementGroup, getElements
-
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
-
-
-
Field Detail
-
origin
protected JROrigin origin
-
-
Constructor Detail
-
JRFillBand
protected JRFillBand(JRBaseFiller filler, JRBand band, JRFillObjectFactory factory)
-
-
Method Detail
-
getOrigin
public JROrigin getOrigin()
Description copied from interface:JROriginProviderReturns an element origin.- Specified by:
getOriginin interfaceJROriginProvider- Returns:
- an element origin
-
setOrigin
protected void setOrigin(JROrigin origin)
-
setNewPageColumn
protected void setNewPageColumn(boolean isNew)
-
isNewPageColumn
protected boolean isNewPageColumn()
-
isFirstWholeOnPageColumn
protected boolean isFirstWholeOnPageColumn()
Decides whether this band is the for whole band on the page/column.- Returns:
- whether this band is the for whole band on the page/column
-
setNewGroup
protected void setNewGroup(JRGroup group, boolean isNew)
-
isNewGroup
protected boolean isNewGroup(JRGroup group)
-
getBreakHeight
public int getBreakHeight()
-
getSplitTypeValue
public SplitTypeEnum getSplitTypeValue()
Description copied from interface:JRBandSpecifies the band split behavior.- Specified by:
getSplitTypeValuein interfaceJRBand
-
setSplitType
public void setSplitType(SplitTypeEnum splitType)
- Specified by:
setSplitTypein interfaceJRBand
-
getPrintWhenExpression
public JRExpression getPrintWhenExpression()
Description copied from interface:JRBandReturns the boolean expression that specifies if the band will be displayed.- Specified by:
getPrintWhenExpressionin interfaceJRBand
-
isSplitPrevented
protected boolean isSplitPrevented()
-
isPrintWhenExpressionNull
protected boolean isPrintWhenExpressionNull()
-
isPrintWhenTrue
protected boolean isPrintWhenTrue()
-
setPrintWhenTrue
protected void setPrintWhenTrue(boolean isPrintWhenTrue)
-
isToPrint
protected boolean isToPrint()
-
evaluatePrintWhenExpression
protected void evaluatePrintWhenExpression(byte evaluation) throws JRException- Throws:
JRException
-
refill
protected JRPrintBand refill(byte evaluation, int availableHeight) throws JRException
- Throws:
JRException
-
fill
protected JRPrintBand fill() throws JRException
- Throws:
JRException
-
fill
protected JRPrintBand fill(int availableHeight) throws JRException
- Throws:
JRException
-
fill
protected JRPrintBand fill(int availableHeight, boolean isOverflowAllowed) throws JRException
- Throws:
JRException
-
willOverflowWithElements
protected boolean willOverflowWithElements()
-
getContainerHeight
protected int getContainerHeight()
Description copied from class:JRFillElementContainerReturns the height of the element container.- Specified by:
getContainerHeightin classJRFillElementContainer- Returns:
- the height of the element container
-
getActualContainerHeight
protected int getActualContainerHeight()
Description copied from class:JRFillElementContainerReturns 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.- Specified by:
getActualContainerHeightin classJRFillElementContainer- Returns:
- the height of the element container
-
isVariableUsedInReturns
protected boolean isVariableUsedInReturns(java.lang.String variableName)
-
addNowEvaluationTime
protected void addNowEvaluationTime(JREvaluationTime evaluationTime)
-
addNowEvaluationTimes
protected void addNowEvaluationTimes(JREvaluationTime[] evaluationTimes)
-
isNowEvaluationTime
protected boolean isNowEvaluationTime(JREvaluationTime evaluationTime)
-
getId
protected int getId()
-
evaluate
protected void evaluate(byte evaluation) throws JRException- Overrides:
evaluatein classJRFillElementContainer- Throws:
JRException
-
resetSavedVariables
protected void resetSavedVariables()
-
saveVariable
protected void saveVariable(java.lang.String variableName)
-
restoreSavedVariables
protected void restoreSavedVariables()
-
isEmpty
protected boolean isEmpty()
-
isColumnBand
protected boolean isColumnBand()
-
isPageBreakInhibited
protected boolean isPageBreakInhibited()
-
isSplitTypePreventInhibited
protected boolean isSplitTypePreventInhibited()
-
isSplitTypePreventInhibited
public boolean isSplitTypePreventInhibited(boolean isTopLevelCall)
- Specified by:
isSplitTypePreventInhibitedin interfaceFillContainerContext
-
hasProperties
public boolean hasProperties()
Description copied from interface:JRPropertiesHolderChecks whether the object has any properties.- Specified by:
hasPropertiesin interfaceJRPropertiesHolder- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolderReturns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentPropertiesin interfaceJRPropertiesHolder- Returns:
- the parent properties holder, or
nullif no parent
-
getReturnValues
public java.util.List<ExpressionReturnValue> getReturnValues()
Description copied from interface:JRBandReturns the list of values to increment report variables with.- Specified by:
getReturnValuesin interfaceJRBand- Returns:
- the list of returned values.
-
registerReturnValues
public void registerReturnValues(FillReturnValues fillReturnValues)
-
-