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 TypeMethodDescriptionvoidaddElement(JRPrintElement element) Adds an element to the container.voidaddOffsetElements(Collection<? extends JRPrintElement> elements, int offsetX, int offsetY) voidconsumeElement(Consumer<JRPrintElement> consumer) intReturns the list ofelementsof the container.intReturns the height of the container.voidsetContentsWidth(int width) voidsetHeight(int height) Sets the height of the container.
-
Constructor Details
-
JRPrintBand
public JRPrintBand()
-
-
Method Details
-
getHeight
public int getHeight()Description copied from interface:JRPrintElementContainerReturns the height of the container.- Specified by:
getHeightin interfaceJRPrintElementContainer- Returns:
- the height of the container
-
setHeight
public void setHeight(int height) Description copied from interface:JRPrintElementContainerSets the height of the container.- Specified by:
setHeightin interfaceJRPrintElementContainer- Parameters:
height- the height
-
getElements
Description copied from interface:JRPrintElementListContainerReturns the list ofelementsof the container.- Specified by:
getElementsin interfaceJRPrintElementListContainer- Returns:
- the list of elements
-
consumeElement
-
addElement
Description copied from interface:JRPrintElementListContainerAdds an element to the container.- Specified by:
addElementin interfaceJRPrintElementListContainer- Parameters:
element- the element to add
-
addOffsetElements
public void addOffsetElements(Collection<? extends JRPrintElement> elements, int offsetX, int offsetY) - Specified by:
addOffsetElementsin interfaceOffsetElementsContainer
-
setContentsWidth
public void setContentsWidth(int width) - Specified by:
setContentsWidthin interfaceJRPrintElementContainer
-
getContentsWidth
public int getContentsWidth()
-