public PrintDrawVisitor( JasperReportsContext jasperReportsContext, RenderersCache renderersCache, boolean minimizePrinterJobSize, boolean ignoreMissingFont ) { this.jasperReportsContext = jasperReportsContext; this.lineDrawer = new LineDrawer(jasperReportsContext); this.rectangleDrawer = new RectangleDrawer(jasperReportsContext); this.ellipseDrawer = new EllipseDrawer(jasperReportsContext); this.imageDrawer = new ImageDrawer(jasperReportsContext, renderersCache); AwtTextRenderer textRenderer = new AwtTextRenderer( jasperReportsContext, minimizePrinterJobSize, ignoreMissingFont ); textDrawer = new TextDrawer(jasperReportsContext, textRenderer); frameDrawer = new FrameDrawer(jasperReportsContext, null, this); }
public PrintDrawVisitor( JRGraphics2DExporterContext exporterContext, RenderersCache renderersCache, boolean minimizePrinterJobSize, boolean ignoreMissingFont ) { this.jasperReportsContext = exporterContext.getJasperReportsContext(); this.lineDrawer = new LineDrawer(jasperReportsContext); this.rectangleDrawer = new RectangleDrawer(jasperReportsContext); this.ellipseDrawer = new EllipseDrawer(jasperReportsContext); this.imageDrawer = new ImageDrawer(jasperReportsContext, renderersCache); AwtTextRenderer textRenderer = new AwtTextRenderer( jasperReportsContext, minimizePrinterJobSize, ignoreMissingFont ); textDrawer = new TextDrawer(jasperReportsContext, textRenderer); frameDrawer = new FrameDrawer(exporterContext, null, this); }
/** * */ public JSSDrawVisitor(ReportConverter reportConverter, Graphics2D grx) { this.reportConverter = reportConverter; this.convertVisitor = new JSSConvertVisitor(reportConverter); final JasperReportsContext jasperReportsContext = reportConverter.getJasperReportsContext(); this.drawVisitor = new PrintDrawVisitor(jasperReportsContext) { @Override public void setTextRenderer(JRReport report) { AwtTextRenderer textRenderer = new AwtTextRenderer(jasperReportsContext, JRPropertiesUtil.getInstance( jasperReportsContext).getBooleanProperty(report, JRGraphics2DExporter.MINIMIZE_PRINTER_JOB_SIZE, true), JRPropertiesUtil.getInstance(jasperReportsContext).getBooleanProperty(report, JRStyledText.PROPERTY_AWT_IGNORE_MISSING_FONT, false)); setTextDrawer(new TextDrawer(jasperReportsContext, textRenderer)); setFrameDrawer(new FrameDrawer(jasperReportsContext, null, textRenderer)); } }; setTextRenderer(reportConverter.getReport()); this.grx = grx; setGraphics2D(grx); this.drawVisitor.setClip(true); }
/** * @deprecated Replaced by {@link #FrameDrawer(JasperReportsContext, ExporterFilter, PrintDrawVisitor)}. */ public FrameDrawer( JasperReportsContext jasperReportsContext, ExporterFilter filter, AwtTextRenderer textRenderer ) { super(jasperReportsContext); this.filter = filter; drawVisitor = new PrintDrawVisitor(jasperReportsContext); drawVisitor.setTextDrawer(new TextDrawer(jasperReportsContext, textRenderer)); drawVisitor.setFrameDrawer(this); }
/** * @deprecated Replaced by {@link #FrameDrawer(JRGraphics2DExporterContext, ExporterFilter, PrintDrawVisitor)}. */ public FrameDrawer( JRGraphics2DExporterContext exporterContext, ExporterFilter filter, AwtTextRenderer textRenderer ) { this(exporterContext.getJasperReportsContext(), filter, textRenderer); this.exporterContext = exporterContext; }
/** * */ public TextDrawer( JasperReportsContext jasperReportsContext, AwtTextRenderer textRenderer ) { super(jasperReportsContext); this.textRenderer = textRenderer; }
/** * @deprecated Replaced by {@link #PrintDrawVisitor(JasperReportsContext, RenderersCache, boolean, boolean)}. */ public void setTextRenderer(JRReport report) { AwtTextRenderer textRenderer = new AwtTextRenderer( jasperReportsContext, JRPropertiesUtil.getInstance(jasperReportsContext).getBooleanProperty(report, Graphics2DReportConfiguration.MINIMIZE_PRINTER_JOB_SIZE, true), JRPropertiesUtil.getInstance(jasperReportsContext).getBooleanProperty(report, JRStyledText.PROPERTY_AWT_IGNORE_MISSING_FONT, false) ); textDrawer = new TextDrawer(jasperReportsContext, textRenderer); frameDrawer = new FrameDrawer(jasperReportsContext, null, textRenderer); }
/** * */ public FontRenderContext getFontRenderContext() { return AwtTextRenderer.LINE_BREAK_FONT_RENDER_CONTEXT; }
public JSSTextDrawer(JasperReportsContext jasperReportsContext, AwtTextRenderer textRenderer) { super(jasperReportsContext, textRenderer); }