本文整理汇总了Java中net.sf.jasperreports.engine.util.JRGraphEnvInitializer类的典型用法代码示例。如果您正苦于以下问题:Java JRGraphEnvInitializer类的具体用法?Java JRGraphEnvInitializer怎么用?Java JRGraphEnvInitializer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JRGraphEnvInitializer类属于net.sf.jasperreports.engine.util包,在下文中一共展示了JRGraphEnvInitializer类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: checkAwtFont
import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
/**
*
*/
public void checkAwtFont(String name, boolean ignoreMissingFont)
{
if (!JRGraphEnvInitializer.isAwtFontAvailable(name))
{
if (ignoreMissingFont)
{
Set<String> missingFontNames = threadMissingFontsCache.get();
if (!missingFontNames.contains(name))
{
missingFontNames.add(name);
if (log.isWarnEnabled())
{
log.warn("Font '" + name + "' is not available to the JVM. For more details, see http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/util/JRFontNotFoundException.html");
}
}
}
else
{
throw new JRFontNotFoundException(name);
}
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:FontUtil.java
示例2: JRPrinterAWT300
import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
/**
*
*/
protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException
{
JRGraphEnvInitializer.initializeGraphEnv();
jasperPrint = jrPrint;
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:10,代码来源:JRPrinterAWT300.java
示例3: JRPrinterAWT
import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
/**
*
*/
public JRPrinterAWT(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint) throws JRException
{
JRGraphEnvInitializer.initializeGraphEnv();
this.jasperReportsContext = jasperReportsContext;
this.jasperPrint = jasperPrint;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:11,代码来源:JRPrinterAWT.java
示例4: JRGraphics2DExporter
import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
/**
*
*/
public JRGraphics2DExporter(JasperReportsContext jasperReportsContext) throws JRException
{
super(jasperReportsContext);
JRGraphEnvInitializer.initializeGraphEnv();
exporterContext = new ExporterContext();
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:12,代码来源:JRGraphics2DExporter.java
示例5: BaseReportFiller
import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
public BaseReportFiller(JasperReportsContext jasperReportsContext, JasperReport jasperReport,
FillerParent parent) throws JRException
{
JRGraphEnvInitializer.initializeGraphEnv();
setJasperReportsContext(jasperReportsContext);
this.jasperReport = jasperReport;
jasperReportSet();
this.parent = parent;
DatasetExpressionEvaluator initEvaluator = null;
if (parent == null)
{
fillContext = new JRFillContext(this);
printTransferPropertyPrefixes = readPrintTransferPropertyPrefixes();
}
else
{
fillContext = parent.getFiller().fillContext;
printTransferPropertyPrefixes = parent.getFiller().printTransferPropertyPrefixes;
initEvaluator = parent.getCachedEvaluator();
}
this.fillerId = fillContext.generatedFillerId();
if (log.isDebugEnabled())
{
log.debug("Fill " + fillerId + ": created for " + jasperReport.getName());
}
if (initEvaluator == null)
{
calculator = JRFillDataset.createCalculator(jasperReportsContext, jasperReport, jasperReport.getMainDataset());
}
else
{
calculator = new JRCalculator(initEvaluator);
}
jasperPrint = new JasperPrint();
factory = initFillFactory();
createDatasets();
mainDataset = factory.getDataset(jasperReport.getMainDataset());
if (parent == null)
{
FillDatasetPosition masterFillPosition = new FillDatasetPosition(null);
mainDataset.setFillPosition(masterFillPosition);
}
delayedActions = new DelayedFillActions(this);
if (log.isDebugEnabled())
{
log.debug("created delayed actions " + delayedActions.getId() + " for filler " + fillerId);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:60,代码来源:BaseReportFiller.java
示例6: JRPrinterAWT300
import net.sf.jasperreports.engine.util.JRGraphEnvInitializer; //导入依赖的package包/类
/**
*
* @param jrPrint
* @param jrPrint
* @throws net.sf.jasperreports.engine.JRException
* @throws JRException
*/
protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException
{
JRGraphEnvInitializer.initializeGraphEnv();
jasperPrint = jrPrint;
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:14,代码来源:JRPrinterAWT300.java
注:本文中的net.sf.jasperreports.engine.util.JRGraphEnvInitializer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论