当前位置: 首页>>代码示例>>Java>>正文


Java AwtTextRenderer类代码示例

本文整理汇总了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);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:24,代码来源:PrintDrawVisitor.java

示例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);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:27,代码来源:JSSDrawVisitor.java

示例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);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:18,代码来源:FrameDrawer.java

示例4: TextDrawer

import net.sf.jasperreports.engine.export.AwtTextRenderer; //导入依赖的package包/类
/**
 *
 */
public TextDrawer(
	JasperReportsContext jasperReportsContext,
	AwtTextRenderer textRenderer
	)
{
	super(jasperReportsContext);
	this.textRenderer = textRenderer;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:12,代码来源:TextDrawer.java

示例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);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:16,代码来源:PrintDrawVisitor.java

示例6: getFontRenderContext

import net.sf.jasperreports.engine.export.AwtTextRenderer; //导入依赖的package包/类
/**
 * 
 */
public FontRenderContext getFontRenderContext()
{
	return AwtTextRenderer.LINE_BREAK_FONT_RENDER_CONTEXT;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:8,代码来源:TextMeasurer.java

示例7: JSSTextDrawer

import net.sf.jasperreports.engine.export.AwtTextRenderer; //导入依赖的package包/类
public JSSTextDrawer(JasperReportsContext jasperReportsContext, AwtTextRenderer textRenderer) {
	super(jasperReportsContext, textRenderer);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:4,代码来源:JSSTextDrawer.java


注:本文中的net.sf.jasperreports.engine.export.AwtTextRenderer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。