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

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


        final ReportFormulaContext rfc = (ReportFormulaContext) formulaContext;
        expressionRuntime = new WrapperExpressionRuntime(staticDataRow, rfc.getRuntime());
      }
      else
      {
        expressionRuntime = new GenericExpressionRuntime
            (new CompoundDataRow(staticDataRow, createDataRow(entries)),
                new DefaultTableModel(), -1, new DefaultProcessingContext());
      }

View Full Code Here


      }
      else
      {
        if (FORMULA_VALUE_ROLE.equals(valueRole) && isFormulaFragment())
        {
          final GenericExpressionRuntime expressionRuntime = new GenericExpressionRuntime
              (new StaticDataRow(), new DefaultTableModel(), -1, new DefaultProcessingContext());
          final String formulaText = FormulaUtil.createEditorTextFromFormula
              (String.valueOf(value), new ReportFormulaContext(new DefaultFormulaContext(), expressionRuntime));
          textField.setText(formulaText);
          comboBox.setSelectedItem(formulaText);
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

  private static final String[] ADDITIONAL_COLUMN_KEYS = new String[] { "chart::series-key", "chart::category-key",
      "chart::series-index", "chart::category-index", "chart::series-keys", "chart::category-keys", "chart::value" };

  public FormulaCategoryURLGenerator(final ExpressionRuntime runtime, final String formula) {
    this.runtime = new GenericExpressionRuntime(runtime);
    this.formulaExpression = new FormulaExpression();
    this.formulaExpression.setFormula(formula);
  }
View Full Code Here

  };

  public FormulaXYZURLGenerator(final ExpressionRuntime runtime,
                                final String formula)
  {
    this.runtime = new GenericExpressionRuntime(runtime);
    this.formulaExpression = new FormulaExpression();
    this.formulaExpression.setFormula(formula);
  }
View Full Code Here

  };

  public FormulaXYZTooltipGenerator(final ExpressionRuntime runtime,
                                    final String formula)
  {
    this.runtime = new GenericExpressionRuntime(runtime);
    this.formulaExpression = new FormulaExpression();
    this.formulaExpression.setFormula(formula);
  }
View Full Code Here

  };

  public FormulaPieTooltipGenerator(final ExpressionRuntime runtime,
                                    final String formula)
  {
    this.runtime = new GenericExpressionRuntime(runtime);
    this.formulaExpression = new FormulaExpression();
    this.formulaExpression.setFormula(formula);
  }
View Full Code Here

    super(s);
  }

  protected void setUp() throws Exception
  {
    final ExpressionRuntime runtime = new GenericExpressionRuntime
        (new StaticDataRow(), new DefaultTableModel(), 0, new DefaultProcessingContext());
    context = new ReportFormulaContext(new TestFormulaContext(TestFormulaContext.testCaseDataset), runtime);
    ClassicEngineBoot.getInstance().start();
  }
View Full Code Here

  };

  public FormulaCategoryTooltipGenerator(final ExpressionRuntime runtime,
                                         final String formula)
  {
    this.runtime = new GenericExpressionRuntime(runtime);
    this.formulaExpression = new FormulaExpression();
    this.formulaExpression.setFormula(formula);
  }
View Full Code Here

TOP

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

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.