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 String
PROPERTY_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 void
addElement(JRPrintElement element)
Adds an element to the container.void
addOffsetElements(Collection<? extends JRPrintElement> elements, int offsetX, int offsetY)
void
fill()
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.protected void
transferVirtualizedList(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: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
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
-
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()
-
-