Package net.sf.jasperreports.engine.fill
Class VirtualizableFrame
java.lang.Object
net.sf.jasperreports.engine.fill.VirtualizableFrame
- All Implemented Interfaces:
OffsetElementsContainer
,JRPrintElementContainer
,JRPrintElementListContainer
public class VirtualizableFrame
extends Object
implements JRPrintElementContainer, OffsetElementsContainer
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVirtualizableFrame
(JRTemplatePrintFrame frame, JRVirtualizationContext virtualizationContext, JRPrintPage page) -
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
fill()
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.protected void
transferVirtualizedList
(VirtualizableElementList originalElements, PrintElementId frameID)
-
Field Details
-
PROPERTY_FRAME_VIRTUALIZATION_ENABLED
- See Also:
-
-
Constructor Details
-
VirtualizableFrame
public VirtualizableFrame(JRTemplatePrintFrame frame, JRVirtualizationContext virtualizationContext, JRPrintPage page)
-
-
Method Details
-
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
-
fill
public void fill() -
transferVirtualizedList
protected void transferVirtualizedList(VirtualizableElementList originalElements, PrintElementId frameID) -
getElements
Description copied from interface:JRPrintElementListContainer
Returns the list ofelements
of the container.- Specified by:
getElements
in interfaceJRPrintElementListContainer
- Returns:
- the list of elements
-
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
-
setContentsWidth
public void setContentsWidth(int width) - Specified by:
setContentsWidth
in interfaceJRPrintElementContainer
-
getContentsWidth
public int getContentsWidth()
-