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 TypeMethodDescriptionvoidaddElement(JRPrintElement element) Adds an element to the container.voidaddOffsetElements(Collection<? extends JRPrintElement> elements, int offsetX, int offsetY) voidfill()intReturns the list ofelementsof the container.intReturns the height of the container.voidsetContentsWidth(int width) voidsetHeight(int height) Sets the height of the container.protected voidtransferVirtualizedList(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: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
-
fill
public void fill() -
transferVirtualizedList
protected void transferVirtualizedList(VirtualizableElementList originalElements, PrintElementId frameID) -
getElements
Description copied from interface:JRPrintElementListContainerReturns the list ofelementsof the container.- Specified by:
getElementsin interfaceJRPrintElementListContainer- Returns:
- the list of elements
-
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
-
setContentsWidth
public void setContentsWidth(int width) - Specified by:
setContentsWidthin interfaceJRPrintElementContainer
-
getContentsWidth
public int getContentsWidth()
-