public class JRTemplatePrintFrame extends JRTemplatePrintElement implements JRPrintFrame, JRPrintElementContainer
JRPrintFrame that uses
template frames to store common
attributes.templateUNSET_SOURCE_ELEMENT_ID| Constructor and Description |
|---|
JRTemplatePrintFrame(JRTemplateFrame templateFrame)
Deprecated.
provide a source Id via
JRTemplatePrintFrame(JRTemplateFrame, int) |
JRTemplatePrintFrame(JRTemplateFrame templateFrame,
int sourceElementId)
Creates a print frame element.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor.
|
void |
addElement(JRPrintElement element)
Adds an element to the container.
|
java.awt.Color |
getDefaultLineColor() |
java.util.List<JRPrintElement> |
getElements()
Returns the list of print elements contained in the frame.
|
JRLineBox |
getLineBox() |
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setWidth, setX, setY, updateElementTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setYgetBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencegetParentProperties, getPropertiesMap, hasPropertiesgetHeight, setHeightpublic JRTemplatePrintFrame(JRTemplateFrame templateFrame)
JRTemplatePrintFrame(JRTemplateFrame, int)templateFrame - the template frame that the element will usepublic JRTemplatePrintFrame(JRTemplateFrame templateFrame, int sourceElementId)
templateFrame - the template frame that the element will usesourceElementId - the Id of the source elementpublic java.util.List<JRPrintElement> getElements()
JRPrintFramegetElements in interface JRPrintElementContainergetElements in interface JRPrintFramepublic void addElement(JRPrintElement element)
JRPrintElementContaineraddElement in interface JRPrintElementContainerelement - the element to addpublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic java.awt.Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainergetDefaultLineColor in class JRTemplatePrintElementpublic <T> void accept(PrintElementVisitor<T> visitor, T arg)
JRPrintElementThe element calls the method that corresponds to the element type on the visitor.
accept in interface JRPrintElementaccept in class JRTemplatePrintElementT - the type of the argument passed to the visit operationvisitor - the visitor objectsarg - the argument passed to the visit operation© 2001-2010 Jaspersoft Corporation www.jaspersoft.com