Package net.sf.jasperreports.engine.util
Class UniformElementVisitor
- java.lang.Object
-
- net.sf.jasperreports.engine.util.UniformElementVisitor
-
- All Implemented Interfaces:
JRVisitor
- Direct Known Subclasses:
DrawVisitor
public abstract class UniformElementVisitor extends Object implements JRVisitor
An abstract visitor class that treats all report elements in the same way.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
visitElement(JRElement)
-
-
Constructor Summary
Constructors Constructor Description UniformElementVisitor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
visitBreak(JRBreak breakElement)
void
visitComponentElement(JRComponentElement componentElement)
Visits a component wrapper element.void
visitCrosstab(JRCrosstab crosstab)
protected abstract void
visitElement(JRElement element)
Method that gets called when any element is visited, no matter what its type is.void
visitEllipse(JREllipse ellipse)
void
visitFrame(JRFrame frame)
void
visitGenericElement(JRGenericElement element)
Visits a generic report element.void
visitImage(JRImage image)
void
visitLine(JRLine line)
void
visitRectangle(JRRectangle rectangle)
void
visitStaticText(JRStaticText staticText)
void
visitSubreport(JRSubreport subreport)
void
visitTextField(JRTextField textField)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRVisitor
visitElementGroup
-
-
-
-
Method Detail
-
visitElement
protected abstract void visitElement(JRElement element)
Method that gets called when any element is visited, no matter what its type is.- Parameters:
element
- the element to be visited
-
visitBreak
public void visitBreak(JRBreak breakElement)
- Specified by:
visitBreak
in interfaceJRVisitor
-
visitComponentElement
public void visitComponentElement(JRComponentElement componentElement)
Description copied from interface:JRVisitor
Visits a component wrapper element.- Specified by:
visitComponentElement
in interfaceJRVisitor
- Parameters:
componentElement
- the element to visit
-
visitCrosstab
public void visitCrosstab(JRCrosstab crosstab)
- Specified by:
visitCrosstab
in interfaceJRVisitor
-
visitEllipse
public void visitEllipse(JREllipse ellipse)
- Specified by:
visitEllipse
in interfaceJRVisitor
-
visitFrame
public void visitFrame(JRFrame frame)
- Specified by:
visitFrame
in interfaceJRVisitor
-
visitGenericElement
public void visitGenericElement(JRGenericElement element)
Description copied from interface:JRVisitor
Visits a generic report element.- Specified by:
visitGenericElement
in interfaceJRVisitor
- Parameters:
element
- the element to visit
-
visitImage
public void visitImage(JRImage image)
- Specified by:
visitImage
in interfaceJRVisitor
-
visitRectangle
public void visitRectangle(JRRectangle rectangle)
- Specified by:
visitRectangle
in interfaceJRVisitor
-
visitStaticText
public void visitStaticText(JRStaticText staticText)
- Specified by:
visitStaticText
in interfaceJRVisitor
-
visitSubreport
public void visitSubreport(JRSubreport subreport)
- Specified by:
visitSubreport
in interfaceJRVisitor
-
visitTextField
public void visitTextField(JRTextField textField)
- Specified by:
visitTextField
in interfaceJRVisitor
-
-