Class PrintDrawVisitor
- java.lang.Object
-
- net.sf.jasperreports.engine.export.draw.PrintDrawVisitor
-
- All Implemented Interfaces:
PrintElementVisitor<Offset>
public class PrintDrawVisitor extends Object implements PrintElementVisitor<Offset>
Print element draw visitor.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description PrintDrawVisitor(JRGraphics2DExporterContext exporterContext, ExporterFilter filter, RenderersCache renderersCache, boolean minimizePrinterJobSize, boolean ignoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine)
PrintDrawVisitor(JasperReportsContext jasperReportsContext, RenderersCache renderersCache, boolean minimizePrinterJobSize, boolean ignoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FrameDrawer
getFrameDrawer()
ImageDrawer
getImageDrawer()
TextDrawer
getTextDrawer()
void
setClip(boolean isClip)
void
setGraphics2D(Graphics2D grx)
void
setTextDrawer(TextDrawer textDrawer)
void
visit(JRGenericPrintElement printElement, Offset offset)
Visits a generic print element.void
visit(JRPrintEllipse ellipse, Offset offset)
Visits a print ellipse.void
visit(JRPrintFrame frame, Offset offset)
Visits a print frame.void
visit(JRPrintImage image, Offset offset)
Visits a print image.void
visit(JRPrintLine line, Offset offset)
Visits a print line.void
visit(JRPrintRectangle rectangle, Offset offset)
Visits a print rectangle.void
visit(JRPrintText textElement, Offset offset)
Visits a text print element.
-
-
-
Constructor Detail
-
PrintDrawVisitor
public PrintDrawVisitor(JasperReportsContext jasperReportsContext, RenderersCache renderersCache, boolean minimizePrinterJobSize, boolean ignoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine)
-
PrintDrawVisitor
public PrintDrawVisitor(JRGraphics2DExporterContext exporterContext, ExporterFilter filter, RenderersCache renderersCache, boolean minimizePrinterJobSize, boolean ignoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine)
-
-
Method Detail
-
setTextDrawer
public void setTextDrawer(TextDrawer textDrawer)
-
setClip
public void setClip(boolean isClip)
-
setGraphics2D
public void setGraphics2D(Graphics2D grx)
-
visit
public void visit(JRPrintText textElement, Offset offset)
Description copied from interface:PrintElementVisitor
Visits a text print element.- Specified by:
visit
in interfacePrintElementVisitor<Offset>
- Parameters:
textElement
- the element to visitoffset
- an argument passed for the visit
-
visit
public void visit(JRPrintImage image, Offset offset)
Description copied from interface:PrintElementVisitor
Visits a print image.- Specified by:
visit
in interfacePrintElementVisitor<Offset>
- Parameters:
image
- the image to visitoffset
- an argument passed for the visit
-
visit
public void visit(JRPrintRectangle rectangle, Offset offset)
Description copied from interface:PrintElementVisitor
Visits a print rectangle.- Specified by:
visit
in interfacePrintElementVisitor<Offset>
- Parameters:
rectangle
- the rectangle to visitoffset
- an argument passed for the visit
-
visit
public void visit(JRPrintLine line, Offset offset)
Description copied from interface:PrintElementVisitor
Visits a print line.- Specified by:
visit
in interfacePrintElementVisitor<Offset>
- Parameters:
line
- the line to visitoffset
- an argument passed for the visit
-
visit
public void visit(JRPrintEllipse ellipse, Offset offset)
Description copied from interface:PrintElementVisitor
Visits a print ellipse.- Specified by:
visit
in interfacePrintElementVisitor<Offset>
- Parameters:
ellipse
- the ellipse to visitoffset
- an argument passed for the visit
-
visit
public void visit(JRPrintFrame frame, Offset offset)
Description copied from interface:PrintElementVisitor
Visits a print frame.- Specified by:
visit
in interfacePrintElementVisitor<Offset>
- Parameters:
frame
- the frame to visitoffset
- an argument passed for the visit
-
visit
public void visit(JRGenericPrintElement printElement, Offset offset)
Description copied from interface:PrintElementVisitor
Visits a generic print element.- Specified by:
visit
in interfacePrintElementVisitor<Offset>
- Parameters:
printElement
- the element to visitoffset
- an argument passed for the visit
-
getTextDrawer
public TextDrawer getTextDrawer()
- Returns:
- the textDrawer
-
getImageDrawer
public ImageDrawer getImageDrawer()
- Returns:
- the imageDrawer
-
getFrameDrawer
public FrameDrawer getFrameDrawer()
- Returns:
- the frameDrawer
-
-