Java 类net.sf.jasperreports.engine.util.JRGraphEnvInitializer 实例源码

项目:jasperreports    文件:FontUtil.java   
/**
 *
 */
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);
        }
    }
}
项目:openbravo-pos    文件:JRPrinterAWT300.java   
/**
 *
 */
protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException
{
    JRGraphEnvInitializer.initializeGraphEnv();

    jasperPrint = jrPrint;
}
项目:jasperreports    文件:JRPrinterAWT.java   
/**
 *
 */
public JRPrinterAWT(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint) throws JRException
{
    JRGraphEnvInitializer.initializeGraphEnv();

    this.jasperReportsContext = jasperReportsContext;
    this.jasperPrint = jasperPrint;
}
项目:jasperreports    文件:JRGraphics2DExporter.java   
/**
 *
 */
public JRGraphics2DExporter(JasperReportsContext jasperReportsContext) throws JRException
{
    super(jasperReportsContext);

    JRGraphEnvInitializer.initializeGraphEnv();

    exporterContext = new ExporterContext();
}
项目:nordpos    文件:JRPrinterAWT.java   
/**
 *
 */
public JRPrinterAWT(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint) throws JRException
{
    JRGraphEnvInitializer.initializeGraphEnv();

    this.jasperReportsContext = jasperReportsContext;
    this.jasperPrint = jasperPrint;
}
项目:OpenbravoPOS    文件:JRPrinterAWT300.java   
/**
 *
 */
protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException
{
    JRGraphEnvInitializer.initializeGraphEnv();

    jasperPrint = jrPrint;
}
项目:jasperreports    文件:BaseReportFiller.java   
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);
    }
}
项目:wifepos    文件:JRPrinterAWT300.java   
/**
 *
    * @param jrPrint
    * @param jrPrint
    * @throws net.sf.jasperreports.engine.JRException
    * @throws JRException
 */
protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException
{
    JRGraphEnvInitializer.initializeGraphEnv();

    jasperPrint = jrPrint;
}
项目:micro-Blagajna    文件:JRPrinterAWT300.java   
/**
 *
    * @param jrPrint
    * @param jrPrint
    * @throws net.sf.jasperreports.engine.JRException
    * @throws JRException
 */
protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException
{
    JRGraphEnvInitializer.initializeGraphEnv();

    jasperPrint = jrPrint;
}
项目:unicenta    文件:JRPrinterAWT300.java   
/**
 *
    * @param jrPrint
    * @param jrPrint
    * @throws net.sf.jasperreports.engine.JRException
    * @throws JRException
 */
protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException
{
    JRGraphEnvInitializer.initializeGraphEnv();

    jasperPrint = jrPrint;
}