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 Modifier and Type Field Description static StringPROPERTY_FRAME_VIRTUALIZATION_ENABLED
-
Constructor Summary
Constructors Constructor Description VirtualizableFrame(JRTemplatePrintFrame frame, JRVirtualizationContext virtualizationContext, JRPrintPage page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(JRPrintElement element)Adds an element to the container.voidaddOffsetElements(Collection<? extends JRPrintElement> elements, int offsetX, int offsetY)voidfill()intgetContentsWidth()List<JRPrintElement>getElements()Returns the list ofelementsof the container.intgetHeight()Returns the height of the container.voidsetContentsWidth(int width)voidsetHeight(int height)Sets the height of the container.protected voidtransferVirtualizedList(VirtualizableElementList originalElements, PrintElementId frameID)
-
-
-
Field Detail
-
PROPERTY_FRAME_VIRTUALIZATION_ENABLED
public static final String PROPERTY_FRAME_VIRTUALIZATION_ENABLED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VirtualizableFrame
public VirtualizableFrame(JRTemplatePrintFrame frame, JRVirtualizationContext virtualizationContext, JRPrintPage page)
-
-
Method Detail
-
addElement
public void addElement(JRPrintElement element)
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
public List<JRPrintElement> 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()
-
-