Package net.sf.jasperreports.engine.base
Class JRBasePrintFrame
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBasePrintElement
-
- net.sf.jasperreports.engine.base.JRBasePrintFrame
-
- All Implemented Interfaces:
Serializable
,JRBoxContainer
,JRCommonElement
,JRIdentifiable
,JRPrintElement
,JRPrintElementContainer
,JRPrintElementListContainer
,JRPrintFrame
,JRPropertiesHolder
,JRStyleContainer
public class JRBasePrintFrame extends JRBasePrintElement implements JRPrintFrame, JRPrintElementContainer
Base implementation ofJRPrintFrame
.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
backcolor, defaultStyleProvider, forecolor, height, key, mode, origin, style, uuid, width, x, y
-
Fields inherited from interface net.sf.jasperreports.engine.JRPrintElement
UNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID
-
-
Constructor Summary
Constructors Constructor Description JRBasePrintFrame(JRDefaultStyleProvider defaultStyleProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> void
accept(PrintElementVisitor<T> visitor, T arg)
Accepts a print element visitor.void
addElement(JRPrintElement element)
Adds an element to the container.void
copyBox(JRLineBox lineBox)
Color
getDefaultLineColor()
List<JRPrintElement>
getElements()
Returns the list of print elements contained in the frame.JRLineBox
getLineBox()
ModeEnum
getMode()
Returns the element transparency mode.-
Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setOrigin, setPrintElementId, setSourceElementId, setStyle, setUUID, setWidth, setX, setY
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getOwnBackcolor, getOwnForecolor, getOwnMode, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUID
-
Methods inherited from interface net.sf.jasperreports.engine.JRPrintElement
getHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setY
-
Methods inherited from interface net.sf.jasperreports.engine.JRPrintElementContainer
getHeight, setContentsWidth, setHeight
-
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
-
-
-
Constructor Detail
-
JRBasePrintFrame
public JRBasePrintFrame(JRDefaultStyleProvider defaultStyleProvider)
-
-
Method Detail
-
getMode
public ModeEnum getMode()
Description copied from interface:JRCommonElement
Returns 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:
getMode
in interfaceJRCommonElement
- Overrides:
getMode
in classJRBasePrintElement
-
copyBox
public void copyBox(JRLineBox lineBox)
-
getLineBox
public JRLineBox getLineBox()
- Specified by:
getLineBox
in interfaceJRBoxContainer
-
addElement
public void addElement(JRPrintElement element)
Description copied from interface:JRPrintElementListContainer
Adds an element to the container.- Specified by:
addElement
in interfaceJRPrintElementListContainer
- Parameters:
element
- the element to add
-
getElements
public List<JRPrintElement> getElements()
Description copied from interface:JRPrintFrame
Returns the list of print elements contained in the frame.- Specified by:
getElements
in interfaceJRPrintElementListContainer
- Specified by:
getElements
in interfaceJRPrintFrame
- Returns:
- the list of sub print elements
-
getDefaultLineColor
public Color getDefaultLineColor()
- Specified by:
getDefaultLineColor
in interfaceJRBoxContainer
-
accept
public <T> void accept(PrintElementVisitor<T> visitor, T arg)
Description copied from interface:JRPrintElement
Accepts a print element visitor.The element calls the method that corresponds to the element type on the visitor.
- Specified by:
accept
in interfaceJRPrintElement
- Overrides:
accept
in classJRBasePrintElement
- Type Parameters:
T
- the type of the argument passed to the visit operation- Parameters:
visitor
- the visitor objectsarg
- the argument passed to the visit operation
-
-