Package net.sf.jasperreports.engine.util
Class DeepPrintElementCounter
- java.lang.Object
-
- net.sf.jasperreports.engine.util.UniformPrintElementVisitor<AtomicInteger>
-
- net.sf.jasperreports.engine.util.DeepPrintElementCounter
-
- All Implemented Interfaces:
PrintElementVisitor<AtomicInteger>
- Direct Known Subclasses:
VirtualizableElementCounter
public class DeepPrintElementCounter extends UniformPrintElementVisitor<AtomicInteger>
Print element visitor that counts deep elements by recursively visitingJRPrintFrame
containers.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DeepPrintElementCounter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
count(Collection<? extends JRPrintElement> elements)
protected static int
count(Collection<? extends JRPrintElement> elements, UniformPrintElementVisitor<AtomicInteger> counter)
static int
count(JRPrintElement element)
Calculates the deep element count of an element.protected static int
count(JRPrintElement element, UniformPrintElementVisitor<AtomicInteger> counter)
protected void
visitElement(JRPrintElement element, AtomicInteger count)
-
Methods inherited from class net.sf.jasperreports.engine.util.UniformPrintElementVisitor
visit, visit, visit, visit, visit, visit, visit, visitFrameElements
-
-
-
-
Method Detail
-
count
public static int count(JRPrintElement element)
Calculates the deep element count of an element.- Parameters:
element
-- Returns:
- the deep element count of the element
-
count
protected static int count(JRPrintElement element, UniformPrintElementVisitor<AtomicInteger> counter)
-
count
public static int count(Collection<? extends JRPrintElement> elements)
-
count
protected static int count(Collection<? extends JRPrintElement> elements, UniformPrintElementVisitor<AtomicInteger> counter)
-
visitElement
protected void visitElement(JRPrintElement element, AtomicInteger count)
- Specified by:
visitElement
in classUniformPrintElementVisitor<AtomicInteger>
-
-