Package org.pentaho.reporting.engine.classic.core.layout.model

Examples of org.pentaho.reporting.engine.classic.core.layout.model.BlockRenderBox


  protected void processRootBand(final StrictBounds pageBounds)
  {
    startProcessing(rootBox.getWatermarkArea());

    final BlockRenderBox headerArea = rootBox.getHeaderArea();
    final BlockRenderBox footerArea = rootBox.getFooterArea();
    final BlockRenderBox repeatFooterArea = rootBox.getRepeatFooterArea();
    final StrictBounds headerBounds =
        new StrictBounds(headerArea.getX(), headerArea.getY(), headerArea.getWidth(), headerArea.getHeight());
    final StrictBounds footerBounds =
        new StrictBounds(footerArea.getX(), footerArea.getY(), footerArea.getWidth(), footerArea.getHeight());
    final StrictBounds repeatFooterBounds = new StrictBounds
        (repeatFooterArea.getX(), repeatFooterArea.getY(), repeatFooterArea.getWidth(), repeatFooterArea.getHeight());
    final StrictBounds contentBounds = new StrictBounds
        (rootBox.getX(), headerArea.getY() + headerArea.getHeight(),
            rootBox.getWidth(), repeatFooterArea.getY() - headerArea.getHeight());

    final double headerHeight = StrictGeomUtility.toExternalValue(drawArea.getHeight());

    final Shape clip = this.graphics.getClip();
    setDrawArea(headerBounds);
View Full Code Here


          (resolverStyleSheet.getBooleanStyleProperty(BandStyleKeys.PAGEBREAK_BEFORE),
              (resolverStyleSheet.getBooleanStyleProperty(BandStyleKeys.PAGEBREAK_AFTER)));

      final SimpleStyleSheet reportStyle = new SimpleStyleSheet(styleSheet);
      final BoxDefinition boxDefinition = renderNodeFactory.getBoxDefinition(reportStyle);
      box = new BlockRenderBox
          (reportStyle, element.getObjectID(), boxDefinition, SubReportType.INSTANCE, element.getAttributes(), null);
    }
    else
    {
      box = renderNodeFactory.produceRenderBox(element, resolverStyleSheet, BandStyleKeys.LAYOUT_BLOCK, stateKey);
View Full Code Here

    }
    if (BandStyleKeys.LAYOUT_BLOCK.equals(layoutType))
    {
      final SimpleStyleSheet styleSheet = bandCache.getStyleSheet(elementStyleSheet);
      final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(styleSheet);
      return new BlockRenderBox(styleSheet, objectID, boxDefinition, elementType, attributes, stateKey);
    }
    if (LAYOUT_PARAGRAPH_LINEBOX.equals(layoutType))
    {
      // The non-inheritable styles will be applied to the auto-generated paragraph box. The inlinebox itself
      // only receives the inheritable styles so that it can inherit it to its next child ..
View Full Code Here

     
      final DesignerRenderer renderer = new DesignerRenderer(context.getOutputProcessor());
      renderer.startReport(report);
      final LogicalPageBox logicalPageBox = renderer.getPageBox();
      final DesignerLayoutBuilder builder = new DesignerLayoutBuilder(context.getMetaData());
      final BlockRenderBox contentArea = logicalPageBox.getContentArea();
      builder.startSection(contentArea, false);
      builder.add(contentArea, band, runtime, null);
      final InlineSubreportMarker[] subreportMarkers = builder.endSection(contentArea, contentArea);

      for (int i = 0; i < subreportMarkers.length; i++)
      {
        final InlineSubreportMarker marker = subreportMarkers[i];
        final RenderNode node =
            contentArea.findNodeById(marker.getInsertationPointId());
        if (node instanceof RenderBox)
        {
          final RenderBox box = (RenderBox) node;
          box.close();
        }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.layout.model.BlockRenderBox

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.