Examples of OutputProcessorMetaData


Examples of org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData

      return metaData;
    }

    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

Examples of org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData

      throw new IllegalStateException("No active breakstate, finish-line cannot continue.");
    }

    final MinorAxisNodeContext nodeContext = getNodeContext();
    final PageGrid pageGrid = getPageGrid();
    final OutputProcessorMetaData metaData = getMetaData();
    breakState.add(EndSequenceElement.INSTANCE, inlineRenderBox);

    final ParagraphRenderBox paragraph = breakState.getParagraph();

    final ElementAlignment textAlignment = paragraph.getTextAlignment();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData

    }
  }

  private double computeImageScaleFactor()
  {
    OutputProcessorMetaData metaData = printerBase.getMetaData();
    final double scaleFactor;
    final double devResolution = metaData.getNumericFeatureValue(OutputProcessorFeature.DEVICE_RESOLUTION);
    if (metaData.isFeatureSupported(OutputProcessorFeature.IMAGE_RESOLUTION_MAPPING))
    {
      if (devResolution != 72.0 && devResolution > 0)
      {
        // Need to scale the device to its native resolution before attempting to draw the image..
        scaleFactor = (72.0 / devResolution);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData


    final ByteArrayOutputStream out = new ByteArrayOutputStream();
    final TextFilePrinterDriver pc = new TextFilePrinterDriver(out, cpi, lpi);
    final PageableTextOutputProcessor outputProcessor = new PageableTextOutputProcessor(pc, report.getConfiguration());
    OutputProcessorMetaData metaData = outputProcessor.getMetaData();
    metaData.initialize(report.getConfiguration());
    final TextDocumentWriter writer = new TextDocumentWriter(metaData, pc, "ISO-8859-1");
    writer.open();
    writer.processPhysicalPage(pageBox.getPageGrid(), pageBox, 0, 0, null);
    writer.close();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData

    ClassicEngineBoot.getInstance().start();
  }

  public void testFontSize()
  {
    final OutputProcessorMetaData metaData = new TextOutputProcessorMetaData
        (12, 12);
    final FontMetrics fontMetrics = metaData.getFontMetrics(ElementDefaultStyleSheet.getDefaultStyle());
    final long charWidth = fontMetrics.getCharWidth('A');
    final long height = fontMetrics.getMaxHeight();
    assertEquals(6000, height);
    assertEquals(6000, charWidth);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData

  {
    final ProcessState next = state.deriveForAdvance();
    // if there is no data in the report's data source, this now prints the No-Data-Band.
    next.fireReportEvent();

    final OutputProcessorMetaData outputProcessorMetaData =
        next.getFlowController().getReportContext().getOutputProcessorMetaData();
    if (outputProcessorMetaData.isFeatureSupported(OutputProcessorFeature.DESIGNTIME) || next.getNumberOfRows() == 0)
    {
      final NoDataBand childs = next.getReport().getNoDataBand();
      if (childs != null)
      {
        return InlineSubreportProcessor.processInline(next, childs);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData

    else
    {
      cb.setTextMatrix(x1 + translateX, y);
    }

    final OutputProcessorMetaData metaData = getMetaData();
    final GlyphList gs = renderableText.getGlyphs();
    final int offset = renderableText.getOffset();

    final CodePointBuffer codePointBuffer = getCodePointBuffer();
    if (metaData.isFeatureSupported(OutputProcessorFeature.FAST_FONTRENDERING) &&
        isNormalTextSpacing(renderableText))
    {
      final int maxLength = renderableText.computeMaximumTextSize(contentX2);
      final String text = gs.getText(renderableText.getOffset(), maxLength, codePointBuffer);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData

    markDirty();
  }

  protected void initializeRendererOnStartReport(final ProcessingContext processingContext)
  {
    final OutputProcessorMetaData metaData = getMetaData();
    this.paranoidChecks = "true".equals(metaData.getConfiguration().getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.layout.ParanoidChecks")) &&
        processingContext.getOutputProcessorMetaData().isFeatureSupported(OutputProcessorFeature.DESIGNTIME) == false;
    this.wrapProgressMarkerInSection = "true".equals(metaData.getConfiguration().getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.legacy.WrapProgressMarkerInSection"));

    staticPropertiesStep.initialize(metaData, processingContext);
    canvasMinorAxisLayoutStep.initialize(metaData, processingContext);
    minorAxisLayoutStep.initialize(metaData);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData

    this.collectedSubReportMarker = new ArrayList<InlineSubreportMarker>();
  }

  public void startReport(final ReportDefinition report, final ProcessingContext processingContext)
  {
    final OutputProcessorMetaData outputProcessorMetaData = processingContext.getOutputProcessorMetaData();

    renderNodeFactory = componentFactory.createRenderNodeFactory();
    renderNodeFactory.initialize(outputProcessorMetaData);

    this.processingContext = processingContext;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData

  private boolean designtime;

  public MasterReportProcessPreprocessor(final DefaultFlowController startFlowController)
  {
    this.startFlowController = startFlowController;
    final OutputProcessorMetaData md = startFlowController.getReportContext().getOutputProcessorMetaData();
    this.designtime = md.isFeatureSupported(OutputProcessorFeature.DESIGNTIME);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.