Package net.sf.jasperreports.engine.fill
Class JRTemplateFrame
java.lang.Object
net.sf.jasperreports.engine.fill.JRTemplateElement
net.sf.jasperreports.engine.fill.JRTemplateFrame
- All Implemented Interfaces:
Serializable,Deduplicable,JRBoxContainer,JRCommonElement,JRPropertiesHolder,JRStyleContainer
Frame information shared by multiple print frame objects.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement
defaultStyleProvider, origin, parentStyle -
Constructor Summary
ConstructorsConstructorDescriptionJRTemplateFrame(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider) Creates a template frame.JRTemplateFrame(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRFillCellContents cell) Creates a template frame for a crosstab cell.JRTemplateFrame(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRFillFrame frame) Creates a template frame for a frame. -
Method Summary
Modifier and TypeMethodDescriptionvoidintReturns a hash code to be used for the deduplicate map.getMode()Returns the element transparency mode.booleanisIdentical(Object object) Determines if this instance is identical to another object.voidMethods inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement
addTemplateHash, getBackcolor, getBaseStyle, getDefaultStyleProvider, getForecolor, getHeight, getId, getKey, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, getStyleResolver, getWidth, hasProperties, setBackcolor, setElement, setForecolor, setKey, setMode, setStyle, templateIdenticalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Field Details
-
lineBox
-
-
Constructor Details
-
JRTemplateFrame
public JRTemplateFrame(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRFillCellContents cell) Creates a template frame for a crosstab cell.- Parameters:
cell- the cell
-
JRTemplateFrame
public JRTemplateFrame(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRFillFrame frame) Creates a template frame for a frame.- Parameters:
frame- the frame
-
JRTemplateFrame
Creates a template frame.- Parameters:
origin- the origin of the elements that will use this templatedefaultStyleProvider- the default style provider to use for this template
-
-
Method Details
-
getLineBox
- Specified by:
getLineBoxin interfaceJRBoxContainer
-
copyBox
-
getMode
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:
getModein interfaceJRCommonElement- Overrides:
getModein classJRTemplateElement
-
getDefaultLineColor
- Specified by:
getDefaultLineColorin interfaceJRBoxContainer
-
getHashCode
public int getHashCode()Description copied from interface:DeduplicableReturns a hash code to be used for the deduplicate map. The returned hash code should be consitent wiwhDeduplicable.isIdentical(Object), i.e. if two objects are identical they should have the same hash code.- Specified by:
getHashCodein interfaceDeduplicable- Returns:
- deduplication hash code
-
isIdentical
Description copied from interface:DeduplicableDetermines if this instance is identical to another object.- Specified by:
isIdenticalin interfaceDeduplicable- Parameters:
object- the object to compare with this instance- Returns:
trueif the two objects are identical and can be deduplicated
-
populateStyle
public void populateStyle()- Overrides:
populateStylein classJRTemplateElement
-