Package net.sf.jasperreports.engine.fill
Class JRPrintBand
java.lang.Object
net.sf.jasperreports.engine.fill.JRPrintBand
- All Implemented Interfaces:
OffsetElementsContainer
,JRPrintElementContainer
,JRPrintElementListContainer
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(JRPrintElement element) Adds an element to the container.void
addOffsetElements
(Collection<? extends JRPrintElement> elements, int offsetX, int offsetY) void
consumeElement
(Consumer<JRPrintElement> consumer) int
Returns the list ofelements
of the container.int
Returns the height of the container.void
setContentsWidth
(int width) void
setHeight
(int height) Sets the height of the container.
-
Constructor Details
-
JRPrintBand
public JRPrintBand()
-
-
Method Details
-
getHeight
public int getHeight()Description copied from interface:JRPrintElementContainer
Returns the height of the container.- Specified by:
getHeight
in interfaceJRPrintElementContainer
- Returns:
- the height of the container
-
setHeight
public void setHeight(int height) Description copied from interface:JRPrintElementContainer
Sets the height of the container.- Specified by:
setHeight
in interfaceJRPrintElementContainer
- Parameters:
height
- the height
-
getElements
Description copied from interface:JRPrintElementListContainer
Returns the list ofelements
of the container.- Specified by:
getElements
in interfaceJRPrintElementListContainer
- Returns:
- the list of elements
-
consumeElement
-
addElement
Description copied from interface:JRPrintElementListContainer
Adds an element to the container.- Specified by:
addElement
in interfaceJRPrintElementListContainer
- Parameters:
element
- the element to add
-
addOffsetElements
public void addOffsetElements(Collection<? extends JRPrintElement> elements, int offsetX, int offsetY) - Specified by:
addOffsetElements
in interfaceOffsetElementsContainer
-
setContentsWidth
public void setContentsWidth(int width) - Specified by:
setContentsWidth
in interfaceJRPrintElementContainer
-
getContentsWidth
public int getContentsWidth()
-