public class JRTemplatePrintFrame extends JRTemplatePrintElement implements JRPrintFrame, JRPrintElementContainer
JRPrintFrame
that uses
template frames
to store common
attributes.template
UNSET_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, updateElementTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY
getBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
getParentProperties, getPropertiesMap, hasProperties
getHeight, setHeight
public 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()
JRPrintFrame
getElements
in interface JRPrintElementContainer
getElements
in interface JRPrintFrame
public void addElement(JRPrintElement element)
JRPrintElementContainer
addElement
in interface JRPrintElementContainer
element
- the element to addpublic JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
public java.awt.Color getDefaultLineColor()
getDefaultLineColor
in interface JRBoxContainer
getDefaultLineColor
in class JRTemplatePrintElement
public <T> void accept(PrintElementVisitor<T> visitor, T arg)
JRPrintElement
The element calls the method that corresponds to the element type on the visitor.
accept
in interface JRPrintElement
accept
in class JRTemplatePrintElement
T
- 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