本文整理汇总了Java中net.sf.jasperreports.engine.export.AwtTextRenderer类的典型用法代码示例。如果您正苦于以下问题:Java AwtTextRenderer类的具体用法?Java AwtTextRenderer怎么用?Java AwtTextRenderer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AwtTextRenderer类属于net.sf.jasperreports.engine.export包,在下文中一共展示了AwtTextRenderer类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: PrintDrawVisitor
import net.sf.jasperreports.engine.export.AwtTextRenderer; //导入依赖的package包/类
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);
}
示例2: JSSDrawVisitor
import net.sf.jasperreports.engine.export.AwtTextRenderer; //导入依赖的package包/类
/**
*
*/
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);
}
示例3: FrameDrawer
import net.sf.jasperreports.engine.export.AwtTextRenderer; //导入依赖的package包/类
/**
* @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);
}
示例4: TextDrawer
import net.sf.jasperreports.engine.export.AwtTextRenderer; //导入依赖的package包/类
/**
*
*/
public TextDrawer(
JasperReportsContext jasperReportsContext,
AwtTextRenderer textRenderer
)
{
super(jasperReportsContext);
this.textRenderer = textRenderer;
}
示例5: setTextRenderer
import net.sf.jasperreports.engine.export.AwtTextRenderer; //导入依赖的package包/类
/**
* @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);
}
示例6: getFontRenderContext
import net.sf.jasperreports.engine.export.AwtTextRenderer; //导入依赖的package包/类
/**
*
*/
public FontRenderContext getFontRenderContext()
{
return AwtTextRenderer.LINE_BREAK_FONT_RENDER_CONTEXT;
}
示例7: JSSTextDrawer
import net.sf.jasperreports.engine.export.AwtTextRenderer; //导入依赖的package包/类
public JSSTextDrawer(JasperReportsContext jasperReportsContext, AwtTextRenderer textRenderer) {
super(jasperReportsContext, textRenderer);
}