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:
Cloneable,FillContainerContext,JRFillCloneable,JROriginProvider,JRBand,JRChild,JRCloneable,JRElementGroup,JRPropertiesHolder,JRVisitable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.engine.fill.JRFillElementContainer
currentOverflowWithElements, currentOverflowWithWhiteSpace, deepElements, evaluatedStyles, expressionEvaluator, filler, hasPrintWhenOverflowElement, isOverflow, stylesToEvaluate, willOverflowWithElements, willOverflowWithWhiteSpaceFields inherited from class net.sf.jasperreports.engine.fill.JRFillElementGroup
bottomElementInGroup, children, elementGroup, elements, topElementInGroupFields inherited from interface net.sf.jasperreports.engine.JRBand
PROPERTY_SPLIT_TYPE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJRFillBand(JRBaseFiller filler, JRBand band, JRFillObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 intReturns the actual height of the element container.intprotected intReturns the height of the element container.intprotected intgetId()Returns an element origin.Returns the parent properties holder, whose properties are used as defaults for this object.Returns the boolean expression that specifies if the band will be displayed.Returns this object's properties map.Returns the list of values to increment report variables with.Specifies the band split behavior.booleanChecks whether the object has any properties.protected booleanprotected booleanisEmpty()protected booleanDecides whether this band is the for whole band on the page/column.protected booleanisNewGroup(String group) protected booleanprotected booleanisNowEvaluationTime(JREvaluationTime evaluationTime) protected booleanprotected booleanprotected booleanprotected booleanbooleanisSplitTypePreventInhibited(boolean isTopLevelCall) protected booleanprotected booleanisVariableUsedInReturns(String variableName) protected JRPrintBandrefill(byte evaluation, int availableHeight) voidregisterReturnValues(FillReturnValues fillReturnValues) protected voidprotected voidprotected voidsaveVariable(String variableName) protected voidsetNewGroup(JRGroup group, boolean isNew) protected voidsetNewPageColumn(boolean isNew) protected voidprotected voidsetPrintWhenTrue(boolean isPrintWhenTrue) voidsetSplitType(SplitTypeEnum splitType) protected booleanMethods inherited from class net.sf.jasperreports.engine.fill.JRFillElementContainer
addSubElements, buildConsolidatedStyle, calculateStretchHeight, collectConditionalStyle, evaluateConditionalStyle, evaluateConditionalStyles, fillElements, getEvaluatedConditionalStyle, getFirstY, getStretchHeight, initConditionalStyles, initDeepElements, initElements, initFill, isCurrentOverflow, isCurrentOverflowAllowed, moveBandBottomElements, prepareElements, prepareStretchHeight, removeBlankElements, resetElements, rewind, setElementOriginProvider, setStretchHeight, stretchElementsToContainer, stretchElementsToElementGroup, willOverflowMethods inherited from class net.sf.jasperreports.engine.fill.JRFillElementGroup
clone, clone, createClone, getChildren, getElementByKey, getElementGroup, getElements, getStretchHeightDiff, reset, visitMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.JRCloneable
cloneMethods inherited from interface net.sf.jasperreports.engine.JRElementGroup
getChildren, getElementByKey, getElementGroup, getElementsMethods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
Field Details
-
origin
-
-
Constructor Details
-
JRFillBand
-
-
Method Details
-
getOrigin
Description copied from interface:JROriginProviderReturns an element origin.- Specified by:
getOriginin interfaceJROriginProvider- Returns:
- an element origin
-
setOrigin
-
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
-
isNewGroup
-
getHeight
public int getHeight() -
getBreakHeight
public int getBreakHeight() -
getSplitType
Description copied from interface:JRBandSpecifies the band split behavior.- Specified by:
getSplitTypein interfaceJRBand
-
setSplitType
- Specified by:
setSplitTypein interfaceJRBand
-
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
- Throws:
JRException
-
refill
- Throws:
JRException
-
fill
- Throws:
JRException
-
fill
- Throws:
JRException
-
fill
- 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
-
addNowEvaluationTime
-
addNowEvaluationTimes
-
isNowEvaluationTime
-
getId
protected int getId() -
evaluate
- Overrides:
evaluatein classJRFillElementContainer- Throws:
JRException
-
resetSavedVariables
protected void resetSavedVariables() -
saveVariable
-
restoreSavedVariables
protected void restoreSavedVariables() -
isEmpty
protected boolean isEmpty() -
isColumnBand
protected boolean isColumnBand() -
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
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
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
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
-