/** * */ 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); } } }
/** * */ protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException { JRGraphEnvInitializer.initializeGraphEnv(); jasperPrint = jrPrint; }
/** * */ public JRPrinterAWT(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint) throws JRException { JRGraphEnvInitializer.initializeGraphEnv(); this.jasperReportsContext = jasperReportsContext; this.jasperPrint = jasperPrint; }
/** * */ public JRGraphics2DExporter(JasperReportsContext jasperReportsContext) throws JRException { super(jasperReportsContext); JRGraphEnvInitializer.initializeGraphEnv(); exporterContext = new ExporterContext(); }
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); } }
/** * * @param jrPrint * @param jrPrint * @throws net.sf.jasperreports.engine.JRException * @throws JRException */ protected JRPrinterAWT300(JasperPrint jrPrint) throws JRException { JRGraphEnvInitializer.initializeGraphEnv(); jasperPrint = jrPrint; }