Package net.sf.jasperreports.engine.fill
Class JRFillFrame
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFillElement
-
- net.sf.jasperreports.engine.fill.JRFillFrame
-
- All Implemented Interfaces:
java.lang.Cloneable,DynamicPropertiesHolder,JRFillCloneable,JRBoxContainer,JRChild,JRCloneable,JRCommonElement,JRElement,JRElementGroup,JRFrame,JRIdentifiable,JRPropertiesHolder,JRStyleContainer,JRStyleSetter,JRVisitable
public class JRFillFrame extends JRFillElement implements JRFrame
Fill time implementation of a frame element.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classJRFillFrame.JRFillFrameElementsFrame element container filler.
-
Field Summary
Fields Modifier and Type Field Description protected BorderSplitTypeborderSplitTypeprotected JRLineBoxlineBoxprotected JRFrameparentFrameprotected booleanwidthStretchEnabled-
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElement
band, conditionalStylesContainer, currentEvaluation, currentStyle, defaultPopulateTemplateStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, dynamicTransferProperties, elementGroup, EXCEPTION_MESSAGE_KEY_INVALID_BOOKMARK_LEVEL, expressionEvaluator, exprStyle, fillContainerContext, filler, hasDynamicPopulateTemplateStyle, initStyle, mergedProperties, originProvider, parent, printElementOriginator, printWhenGroupChanges, propertyExpressions, providerStyle, staticProperties, staticTransferProperties, styleProviders, templates
-
Fields inherited from interface net.sf.jasperreports.engine.JRElement
PROPERTY_ELEMENT_TEMPLATE_POPULATE_STYLE
-
Fields inherited from interface net.sf.jasperreports.engine.JRFrame
PROPERTY_BORDER_SPLIT_TYPE, PROPERTY_FRAME_WIDTH_STRETCH_DISABLED
-
-
Constructor Summary
Constructors Modifier Constructor Description JRFillFrame(JRBaseFiller filler, JRFrame frame, JRFillObjectFactory factory)protectedJRFillFrame(JRFillFrame frame, JRFillCloneFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcollectExpressions(JRExpressionCollector collector)JRFillCloneablecreateClone(JRFillCloneFactory factory)Creates a working clone of itself.protected JRTemplateElementcreateElementTemplate()protected JRTemplateFramecreateFrameTemplate()protected booleandrawBotomBorderOnSplit()protected booleandrawTopBorderOnSplit()protected voidevaluate(byte evaluation)protected voidevaluateStyle(byte evaluation)protected JRPrintElementfill()BorderSplitTypegetBorderSplitType()Determines how should the frames borders behave when the frame splits on two pages.java.util.List<JRChild>getChildren()Gets a list of all direct children elements or elements groups.java.awt.ColorgetDefaultLineColor()JRElementgetElementByKey(java.lang.String key)Gets an element from this group, based on its element key.JRElement[]getElements()Gets an array containing all the elements and element groups in the hierarchy.JRLineBoxgetLineBox()ModeEnumgetModeValue()Returns the element transparency mode.protected JRTemplateFramegetTemplate()protected booleanprepare(int availableHeight, boolean isOverflow)protected voidresolveElement(JRPrintElement element, byte evaluation)Resolves an element.protected voidrewind()protected voidsetStretchHeight(int stretchHeight)protected booleanstretchElementToHeight(int stretchHeight)This method returns a boolean signaling if any stretch change occurred.protected voidstretchHeightFinal()Deprecated.To be removed.voidvisit(JRVisitor visitor)-
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElement
_moveDependantElements, _stretchElement, _stretchElementToHeight, addDependantElement, addDynamicProperty, clone, clone, clone, collectDelayedEvaluations, collectDelayedEvaluations, collectDelayedEvaluations, collectStyleDelayedEvaluations, collectStyleProviderDelayedEvaluations, delayedEvaluate, delayedEvaluationUpdatesTemplate, evaluateExpression, evaluatePrintWhenExpression, evaluateProperties, getBackcolor, getBand, getBookmarkLevel, getCollapsedHeightAbove, getCollapsedHeightBelow, getConditionalStylesContainer, getDefaultStyleProvider, getDependantElements, getDynamicProperties, getElementGroup, getElementOrigin, getElementTemplate, getEvaluatedProperties, getEvaluationTimeValue, getField, getFiller, getForecolor, getGroupElements, getHeight, getInitStyle, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParent, getParentProperties, getPositionTypeValue, getPrepareHeight, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getRelativeY, getStretchHeight, getStretchTypeValue, getStyle, getStyleExpression, getStyleNameReference, getStyleResolver, getTemplate, getTimeZone, getUUID, getVariable, getWidth, getX, getY, hasDynamicProperties, hasDynamicProperty, hasProperties, initDelayedEvaluationPrint, initDelayedEvaluations, initStyleProviders, isAlreadyPrinted, isAutoEvaluateNow, isDelayedStyleEvaluation, isEvaluateAuto, isEvaluateNow, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isPrintWhenExpressionNull, isPrintWhenTrue, isRemoveLineWhenBlank, isReprinted, isToPrint, isValueRepeating, moveDependantElements, performDelayedEvaluation, registerTemplate, reset, resolveElement, setAlreadyPrinted, setBackcolor, setBand, setCollapsedHeightAbove, setCollapsedHeightBelow, setConditionalStylesContainer, setCurrentEvaluation, setExpressionEvaluator, setForecolor, setHeight, setMode, setOriginProvider, setPositionType, setPrepareHeight, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setPrintWhenExpressionNull, setPrintWhenTrue, setRelativeY, setRemoveLineWhenBlank, setReprinted, setShrinkable, setStretchType, setStyle, setStyleNameReference, setToPrint, setValueRepeating, setWidth, setX, setY, stretchElement, stretchElementToContainer, stretchElementToElementGroup, toPopulateTemplateStyle, transferProperties, transferProperties
-
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.JRCommonElement
getBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRElement
clone, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getStyleExpression, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
-
Methods inherited from interface net.sf.jasperreports.engine.JRElementGroup
getElementGroup
-
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUID
-
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
-
-
-
-
Field Detail
-
parentFrame
protected final JRFrame parentFrame
-
lineBox
protected final JRLineBox lineBox
-
borderSplitType
protected final BorderSplitType borderSplitType
-
widthStretchEnabled
protected final boolean widthStretchEnabled
-
-
Constructor Detail
-
JRFillFrame
public JRFillFrame(JRBaseFiller filler, JRFrame frame, JRFillObjectFactory factory)
-
JRFillFrame
protected JRFillFrame(JRFillFrame frame, JRFillCloneFactory factory)
-
-
Method Detail
-
getModeValue
public ModeEnum getModeValue()
Description copied from interface:JRCommonElementReturns the element transparency mode. The default value depends on the type of the report element. Graphic elements like rectangles and lines are opaque by default, but the images are transparent. Both static texts and text fields are transparent by default, and so are the subreport elements.- Specified by:
getModeValuein interfaceJRCommonElement- Overrides:
getModeValuein classJRFillElement
-
getDefaultLineColor
public java.awt.Color getDefaultLineColor()
- Specified by:
getDefaultLineColorin interfaceJRBoxContainer
-
evaluate
protected void evaluate(byte evaluation) throws JRException- Specified by:
evaluatein classJRFillElement- Throws:
JRException
-
evaluateStyle
protected void evaluateStyle(byte evaluation) throws JRException- Overrides:
evaluateStylein classJRFillElement- Throws:
JRException
-
rewind
protected void rewind() throws JRException- Specified by:
rewindin classJRFillElement- Throws:
JRException
-
drawTopBorderOnSplit
protected boolean drawTopBorderOnSplit()
-
drawBotomBorderOnSplit
protected boolean drawBotomBorderOnSplit()
-
prepare
protected boolean prepare(int availableHeight, boolean isOverflow) throws JRException- Overrides:
preparein classJRFillElement- Throws:
JRException
-
setStretchHeight
protected void setStretchHeight(int stretchHeight)
- Overrides:
setStretchHeightin classJRFillElement
-
stretchHeightFinal
protected void stretchHeightFinal()
Deprecated.To be removed.Description copied from class:JRFillElementCalled when the stretch height of an element is final so that the element can perform any adjustments.- Overrides:
stretchHeightFinalin classJRFillElement
-
stretchElementToHeight
protected boolean stretchElementToHeight(int stretchHeight)
Description copied from class:JRFillElementThis method returns a boolean signaling if any stretch change occurred. It does not say which amount of stretch was applied, but that is OK, because the only place where this is checked is during frame cascading stretch, where the stretchHeight field of the frame (set here) is used directly.- Overrides:
stretchElementToHeightin classJRFillElement
-
fill
protected JRPrintElement fill() throws JRException
- Specified by:
fillin classJRFillElement- Throws:
JRException
-
getTemplate
protected JRTemplateFrame getTemplate()
-
createFrameTemplate
protected JRTemplateFrame createFrameTemplate()
-
createElementTemplate
protected JRTemplateElement createElementTemplate()
- Specified by:
createElementTemplatein classJRFillElement
-
resolveElement
protected void resolveElement(JRPrintElement element, byte evaluation)
Description copied from class:JRFillElementResolves an element.- Specified by:
resolveElementin classJRFillElement- Parameters:
element- the elementevaluation- the evaluation type
-
getElements
public JRElement[] getElements()
Description copied from interface:JRElementGroupGets an array containing all the elements and element groups in the hierarchy.- Specified by:
getElementsin interfaceJRElementGroup
-
getChildren
public java.util.List<JRChild> getChildren()
Description copied from interface:JRElementGroupGets a list of all direct children elements or elements groups.- Specified by:
getChildrenin interfaceJRElementGroup
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
- Specified by:
collectExpressionsin interfaceJRElement
-
getLineBox
public JRLineBox getLineBox()
- Specified by:
getLineBoxin interfaceJRBoxContainer
-
getBorderSplitType
public BorderSplitType getBorderSplitType()
Description copied from interface:JRFrameDetermines how should the frames borders behave when the frame splits on two pages.- Specified by:
getBorderSplitTypein interfaceJRFrame- Returns:
- the border split type
- See Also:
JRFrame.PROPERTY_BORDER_SPLIT_TYPE,JRDesignFrame.setBorderSplitType(BorderSplitType)
-
visit
public void visit(JRVisitor visitor)
- Specified by:
visitin interfaceJRVisitable
-
getElementByKey
public JRElement getElementByKey(java.lang.String key)
Description copied from interface:JRElementGroupGets an element from this group, based on its element key.- Specified by:
getElementByKeyin interfaceJRElementGroup
-
createClone
public JRFillCloneable createClone(JRFillCloneFactory factory)
Description copied from interface:JRFillCloneableCreates a working clone of itself.- Specified by:
createClonein interfaceJRFillCloneable- Parameters:
factory- the clone factory to use while creating the clone- Returns:
- a working clone of itself
-
-