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, 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
ConstructorsModifierConstructorDescriptionprotected
JRFillBand
(JRBaseFiller filler, JRBand band, JRFillObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addNowEvaluationTime
(JREvaluationTime evaluationTime) protected void
addNowEvaluationTimes
(JREvaluationTime[] evaluationTimes) protected void
evaluate
(byte evaluation) protected void
evaluatePrintWhenExpression
(byte evaluation) protected JRPrintBand
fill()
protected JRPrintBand
fill
(int availableHeight) protected JRPrintBand
fill
(int availableHeight, boolean isOverflowAllowed) protected int
Returns the actual height of the element container.int
protected int
Returns the height of the element container.int
protected int
getId()
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.boolean
Checks whether the object has any properties.protected boolean
protected boolean
isEmpty()
protected boolean
Decides whether this band is the for whole band on the page/column.protected boolean
isNewGroup
(String group) protected boolean
protected boolean
isNowEvaluationTime
(JREvaluationTime evaluationTime) protected boolean
protected boolean
protected boolean
protected boolean
boolean
isSplitTypePreventInhibited
(boolean isTopLevelCall) protected boolean
protected boolean
isVariableUsedInReturns
(String variableName) protected JRPrintBand
refill
(byte evaluation, int availableHeight) void
registerReturnValues
(FillReturnValues fillReturnValues) protected void
protected void
protected void
saveVariable
(String variableName) protected void
setNewGroup
(JRGroup group, boolean isNew) protected void
setNewPageColumn
(boolean isNew) protected void
protected void
setPrintWhenTrue
(boolean isPrintWhenTrue) void
setSplitType
(SplitTypeEnum splitType) protected boolean
Methods 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, 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 Details
-
origin
-
-
Constructor Details
-
JRFillBand
-
-
Method Details
-
getOrigin
Description copied from interface:JROriginProvider
Returns an element origin.- Specified by:
getOrigin
in 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:JRBand
Specifies the band split behavior.- Specified by:
getSplitType
in interfaceJRBand
-
setSplitType
- Specified by:
setSplitType
in interfaceJRBand
-
getPrintWhenExpression
Description copied from interface:JRBand
Returns the boolean expression that specifies if the band will be displayed.- Specified by:
getPrintWhenExpression
in 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:JRFillElementContainer
Returns the height of the element container.- Specified by:
getContainerHeight
in classJRFillElementContainer
- Returns:
- the height of the element container
-
getActualContainerHeight
protected int getActualContainerHeight()Description copied from class:JRFillElementContainer
Returns 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:
getActualContainerHeight
in classJRFillElementContainer
- Returns:
- the height of the element container
-
isVariableUsedInReturns
-
addNowEvaluationTime
-
addNowEvaluationTimes
-
isNowEvaluationTime
-
getId
protected int getId() -
evaluate
- Overrides:
evaluate
in 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:
isSplitTypePreventInhibited
in interfaceFillContainerContext
-
hasProperties
public boolean hasProperties()Description copied from interface:JRPropertiesHolder
Checks whether the object has any properties.- Specified by:
hasProperties
in interfaceJRPropertiesHolder
- Returns:
- whether the object has any properties
-
getPropertiesMap
Description copied from interface:JRPropertiesHolder
Returns this object's properties map.- Specified by:
getPropertiesMap
in interfaceJRPropertiesHolder
- Returns:
- this object's properties map
-
getParentProperties
Description copied from interface:JRPropertiesHolder
Returns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentProperties
in interfaceJRPropertiesHolder
- Returns:
- the parent properties holder, or
null
if no parent
-
getReturnValues
Description copied from interface:JRBand
Returns the list of values to increment report variables with.- Specified by:
getReturnValues
in interfaceJRBand
- Returns:
- the list of returned values.
-
registerReturnValues
-