Package net.sf.jasperreports.engine.fill
Class JRPrintBand
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRPrintBand
-
- All Implemented Interfaces:
OffsetElementsContainer
,JRPrintElementContainer
,JRPrintElementListContainer
public class JRPrintBand extends Object implements JRPrintElementContainer, OffsetElementsContainer
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description JRPrintBand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
getContentsWidth()
List<JRPrintElement>
getElements()
Returns the list ofelements
of the container.int
getHeight()
Returns the height of the container.void
setContentsWidth(int width)
void
setHeight(int height)
Sets the height of the container.
-
-
-
Method Detail
-
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
public List<JRPrintElement> getElements()
Description copied from interface:JRPrintElementListContainer
Returns the list ofelements
of the container.- Specified by:
getElements
in interfaceJRPrintElementListContainer
- Returns:
- the list of elements
-
consumeElement
public void consumeElement(Consumer<JRPrintElement> consumer)
-
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
-
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()
-
-