Package org.pentaho.reporting.engine.classic.core.function

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime


    {
    }

    public Locale getLocale()
    {
      final ExpressionRuntime expressionRuntime = getRuntime();
      if (expressionRuntime == null)
      {
        throw new IllegalStateException();
      }
      return expressionRuntime.getResourceBundleFactory().getLocale();
    }
View Full Code Here


      return expressionRuntime.getResourceBundleFactory().getLocale();
    }

    public OutputProcessorMetaData getOutputProcessorMetaData()
    {
      final ExpressionRuntime expressionRuntime = getRuntime();
      if (expressionRuntime == null)
      {
        throw new IllegalStateException();
      }
      return expressionRuntime.getProcessingContext().getOutputProcessorMetaData();
    }
View Full Code Here

    report.getReportHeader().getElement(1).getStyle().setStyleProperty(TextStyleKeys.DIRECTION, TextDirection.RTL);
    report.getReportHeader().removeElement(0);
    report.getReportHeader().getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.YELLOW);
    report.getReportFooter().clear();

    ExpressionRuntime runtime = new GenericExpressionRuntime(new DefaultTableModel(), 0, new DefaultProcessingContext(report));

    RichTextStyleResolver.resolveStyle(report);

    XSSFWorkbook hssfWorkbook = new XSSFWorkbook();
    ExcelColorProducer colorProducer = new StaticExcelColorSupport();
View Full Code Here

    FastHtmlImageBounds bounds = new FastHtmlImageBounds(StrictGeomUtility.toInternalValue(20.465),
        StrictGeomUtility.toInternalValue(20.465), StrictGeomUtility.toInternalValue(16),
        StrictGeomUtility.toInternalValue(16));
    recordedBounds.put(element.getElement(1).getObjectID(), bounds);

    ExpressionRuntime runtime = new GenericExpressionRuntime(new DefaultTableModel(), 0, new DefaultProcessingContext(report));
    assertTrue(te.performOutput(element, setup.productImpliedStyles(), recordedBounds, runtime));
    String text = setup.getResult();
    String start = text.substring(0, FAST_HTML_MATCH.length());
    assertEquals(FAST_HTML_MATCH, start);
    assertTrue(text.endsWith("</span>\n"));
View Full Code Here

   * @return the value of the function.
   */
  public Object getValue()
  {

    final ExpressionRuntime runtime = getRuntime();
    if (runtime == null)
    {
      return null;
    }
    final TableModel data = runtime.getData();
    if (data == null)
    {
      return null;
    }
    if (data.getRowCount() == 0)
View Full Code Here

    {
    }

    public Locale getLocale()
    {
      final ExpressionRuntime expressionRuntime = getRuntime();
      if (expressionRuntime == null)
      {
        throw new IllegalStateException();
      }
      return expressionRuntime.getResourceBundleFactory().getLocale();
    }
View Full Code Here

      return expressionRuntime.getResourceBundleFactory().getLocale();
    }

    public OutputProcessorMetaData getOutputProcessorMetaData()
    {
      final ExpressionRuntime expressionRuntime = getRuntime();
      if (expressionRuntime == null)
      {
        throw new IllegalStateException();
      }
      return expressionRuntime.getProcessingContext().getOutputProcessorMetaData();
    }
View Full Code Here

      if (event.getState().isSubReportEvent() == false)
      {
        renderer.startReport(report, getRuntime().getProcessingContext(), event.getState().getPerformanceMonitorContext());

        final ReportState reportState = event.getState();
        final ExpressionRuntime runtime = getRuntime();
        try
        {
          reportState.firePageStartedEvent(reportState.getEventCode());
        }
        finally
View Full Code Here

    }

    final ProcessingContext processingContext = getRuntime().getProcessingContext();
    final ReportDefinition report = state.getReport();
    LayouterLevel[] levels = null;
    ExpressionRuntime runtime = null;
    final OutputProcessorMetaData metaData = renderer.getOutputProcessor().getMetaData();
    if (metaData.isFeatureSupported(OutputProcessorFeature.WATERMARK_SECTION))
    {
      renderer.startSection(Renderer.SectionType.WATERMARK);
      // a new page has started, so reset the cursor ...
View Full Code Here

    {
      pp.setLabelGenerator(null);
    }
    else
    {
      final ExpressionRuntime runtime = getRuntime();
      final Locale locale = runtime.getResourceBundleFactory().getLocale();

      final FastDecimalFormat fastPercent = new FastDecimalFormat(FastDecimalFormat.TYPE_PERCENT, locale);
      final FastDecimalFormat fastInteger = new FastDecimalFormat(FastDecimalFormat.TYPE_INTEGER, locale);

      final DecimalFormat numFormat = new DecimalFormat(fastInteger.getPattern(), new DecimalFormatSymbols(locale));
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.