Package org.pentaho.reporting.engine.classic.core.modules.output.fast.html

Examples of org.pentaho.reporting.engine.classic.core.modules.output.fast.html.FastHtmlTextExtractor


    report.getReportFooter().clear();

    RichTextStyleResolver.resolveStyle(report);

    HtmlRenderingSetup setup = new HtmlRenderingSetup(report);
    FastHtmlTextExtractor te = setup.createFastExtractor();

    Band element = (Band) report.getReportHeader().getElement(0);
    HashMap<InstanceID, FastHtmlImageBounds> recordedBounds = new HashMap<InstanceID, FastHtmlImageBounds>();
    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


    public FastHtmlTextExtractor createFastExtractor() throws ContentIOException
    {
      OutputProcessorMetaData metaData = createMetaData();
      DefaultHtmlContentGenerator contentGenerator = createContentGenerator();
      HtmlTagHelper tagHelper = createTagHelper();
      return new FastHtmlTextExtractor(metaData, getWriter(), contentGenerator, tagHelper);
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.fast.html.FastHtmlTextExtractor

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.