Examples of WatermarkAreaBox


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

    // Compute the block-position of the box. The box is positioned relative to the previous silbling or
    // relative to the parent.
    box.setCachedY(computeVerticalBlockPosition(box));
    if (box.getNodeType() == LayoutNodeTypes.TYPE_BOX_WATERMARK)
    {
      final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) box;
      box.setCachedHeight(watermarkAreaBox.getLogicalPage().getPageHeight());
    }
    else
    {
      final RenderBox watermark = isWatermark(box);
      if (watermark != null)
      {
        final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) watermark;
        box.setCachedHeight(watermarkAreaBox.getLogicalPage().getPageHeight());
      }
      else if ((box.getNodeType() & LayoutNodeTypes.MASK_BOX_BLOCK) == LayoutNodeTypes.MASK_BOX_BLOCK)
      {
        final long blockHeight = computeBlockHeightAndAlign(box, 0);
        box.setCachedHeight(blockHeight);
View Full Code Here

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

    }

    final int nodeType = box.getNodeType();
    if (box.getNodeType() == LayoutNodeTypes.TYPE_BOX_WATERMARK)
    {
      final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) box;
      box.setCachedHeight(watermarkAreaBox.getLogicalPage().getPageHeight());
    }
    else
    {
      final RenderBox watermark = isWatermark(box);
      if (watermark != null)
      {
        final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) watermark;
        box.setCachedHeight(watermarkAreaBox.getLogicalPage().getPageHeight());
      }
      else if ((nodeType & LayoutNodeTypes.MASK_BOX_BLOCK) == LayoutNodeTypes.MASK_BOX_BLOCK)
      {
        final long blockHeight = computeBlockHeightAndAlign(box, 0);
        box.setCachedHeight(blockHeight);
View Full Code Here

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

    final long retval = Math.max(0, computedContentHeight + insetTop + insetBottom);
    // For the water-mark area, this computation is different. The Watermark-area uses the known height of
    // the parent (=the page size)
    if (box instanceof WatermarkAreaBox)
    {
      final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) box;
      final LogicalPageBox lpb = watermarkAreaBox.getLogicalPage();
      // set the page-height as watermark size.
      return Math.max(retval, Math.max(0, lpb.getPageHeight() - insetTop - insetBottom));
    }
    return retval;
  }
View Full Code Here

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

    // For the water-mark area, this computation is different. The Watermark-area uses the known height of
    // the parent (=the page size)
    if (box.getNodeType() == LayoutNodeTypes.TYPE_BOX_WATERMARK)
    {
      final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) box;
      final LogicalPageBox lpb = watermarkAreaBox.getLogicalPage();
      // set the page-height as watermark size.
      return lpb.getPageHeight();
    }

    // Check the height. Set the height.
View Full Code Here

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

        return headerLayoutBuilder.endSection(headerArea, sectionBox);
      }
      case Renderer.TYPE_WATERMARK:
      {
        // ignore for now.
        final WatermarkAreaBox watermarkArea = pageBox.getWatermarkArea();
        if (sectionBox.getFirstChild() == sectionBox.getLastChild() &&
            isEmptyOrMarker(watermarkArea.getFirstChild()) &&
            isEmptyOrMarker(sectionBox.getFirstChild()))
        {
          // both boxes are empty, so we can ignore it ...
          return watermarkLayoutBuilder.endSection(watermarkArea, sectionBox);
        }
View Full Code Here

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

  protected void processRootBand(final StrictBounds pageBounds)
  {
    if (subType == SectionSubType.WATERMARK)
    {
      final WatermarkAreaBox box = getRootBox().getWatermarkArea();
      setDrawArea(new StrictBounds(box.getX(), box.getY(), box.getWidth(), box.getHeight()));
      getGraphics().clip(createClipRect(getDrawArea()));
      startProcessing(box);
    }
    else if (subType == SectionSubType.HEADER)
    {
      final BlockRenderBox box = getRootBox().getHeaderArea();
      setDrawArea(new StrictBounds(box.getX(), box.getY(), box.getWidth(), box.getHeight()));
      getGraphics().clip(createClipRect(getDrawArea()));
      startProcessing(box);
    }
    else if (subType == SectionSubType.FOOTER)
    {
      final BlockRenderBox box = getRootBox().getFooterArea();
      setDrawArea(new StrictBounds(box.getX(), box.getY(), box.getWidth(), box.getHeight()));
      getGraphics().clip(createClipRect(getDrawArea()));
      startProcessing(box);
    }
    else
    {
      final RenderBox box = getRootBox();
      setDrawArea(new StrictBounds(box.getX(), box.getY(), box.getWidth(), box.getHeight()));
      getGraphics().clip(createClipRect(getDrawArea()));
      processBoxChilds(getRootBox());
    }
  }
View Full Code Here

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

          (contentBox, 0, contentBox.getCachedWidth()));

    }
    else if (layoutNodeType == LayoutNodeTypes.TYPE_BOX_WATERMARK)
    {
      final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) box;
      box.setCachedHeight(watermarkAreaBox.getLogicalPage().getPageHeight());
    }
    return true;
  }
View Full Code Here

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

    performFinishTable(box);

    final int nodeType = box.getNodeType();
    if (nodeType == LayoutNodeTypes.TYPE_BOX_WATERMARK)
    {
      final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) box;
      box.setCachedHeight(watermarkAreaBox.getLogicalPage().getPageHeight());
    }
    else
    {
      final int layoutNodeType = box.getLayoutNodeType();
      final RenderBox watermark = isWatermark(box);
      if (watermark != null)
      {
        final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) watermark;
        box.setCachedHeight(watermarkAreaBox.getLogicalPage().getPageHeight());
      }
      else if ((layoutNodeType & LayoutNodeTypes.MASK_BOX_BLOCK) == LayoutNodeTypes.MASK_BOX_BLOCK)
      {
        box.setCachedHeight(computeBlockHeightAndAlign(box));
      }
View Full Code Here

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

    final long retval = Math.max(0, computedContentHeight + insetTop + insetBottom);
    // For the water-mark area, this computation is different. The Watermark-area uses the known height of
    // the parent (=the page size)
    if (box.getNodeType() == LayoutNodeTypes.TYPE_BOX_WATERMARK)
    {
      final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) box;
      final LogicalPageBox lpb = watermarkAreaBox.getLogicalPage();
      // set the page-height as watermark size.
      return Math.max(retval, Math.max(0, lpb.getPageHeight() - insetTop - insetBottom));
    }
    return retval;
  }
View Full Code Here

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

  {
    // For the water-mark area, this computation is different. The Watermark-area uses the known height of
    // the parent (=the page size)
    if (box.getNodeType() == LayoutNodeTypes.TYPE_BOX_WATERMARK)
    {
      final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) box;
      final LogicalPageBox lpb = watermarkAreaBox.getLogicalPage();
      // set the page-height as watermark size.
      return lpb.getPageHeight();
    }

    // Check the height. Set the height.
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.