Java 类net.sf.jasperreports.engine.export.AwtTextRenderer 实例源码

项目:jasperreports    文件:PrintDrawVisitor.java   
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);
}
项目:jasperreports    文件:PrintDrawVisitor.java   
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);
}
项目:PDFReporter-Studio    文件:JSSDrawVisitor.java   
/**
 *
 */
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);
}
项目:jasperreports    文件:FrameDrawer.java   
/**
 * @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);
}
项目:jasperreports    文件:FrameDrawer.java   
/**
 * @deprecated Replaced by {@link #FrameDrawer(JRGraphics2DExporterContext, ExporterFilter, PrintDrawVisitor)}.
 */
public FrameDrawer(
    JRGraphics2DExporterContext exporterContext, 
    ExporterFilter filter,
    AwtTextRenderer textRenderer
    )
{
    this(exporterContext.getJasperReportsContext(), filter, textRenderer);

    this.exporterContext = exporterContext;
}
项目:jasperreports    文件:TextDrawer.java   
/**
 *
 */
public TextDrawer(
    JasperReportsContext jasperReportsContext,
    AwtTextRenderer textRenderer
    )
{
    super(jasperReportsContext);
    this.textRenderer = textRenderer;
}
项目:jasperreports    文件:PrintDrawVisitor.java   
/**
 * @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);
}
项目:jasperreports    文件:TextMeasurer.java   
/**
 * 
 */
public FontRenderContext getFontRenderContext()
{
    return AwtTextRenderer.LINE_BREAK_FONT_RENDER_CONTEXT;
}
项目:PDFReporter-Studio    文件:JSSTextDrawer.java   
public JSSTextDrawer(JasperReportsContext jasperReportsContext, AwtTextRenderer textRenderer) {
    super(jasperReportsContext, textRenderer);
}