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.
    final int nodeType = box.getLayoutNodeType();
    if (nodeType == 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
      {
        long parentHeightForResolve = 0;
        final RenderBox parent = box.getParent();
View Full Code Here

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

    final int nodeType = box.getLayoutNodeType();
    performFinishTable(box);

    if (nodeType == LayoutNodeTypes.TYPE_BOX_WATERMARK)
    {
      final WatermarkAreaBox watermarkAreaBox = (WatermarkAreaBox) box;
      box.setCachedHeight(watermarkAreaBox.getLogicalPage().getPageHeight());
    }
    else
    {
      long parentHeightForResolve = 0;
      final RenderBox parent = box.getParent();
      if (parent != null && parent.getLayoutNodeType() == LayoutNodeTypes.TYPE_BOX_TABLE_CELL)
      {
        parentHeightForResolve = resolveParentHeight(box);
      }

      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, parentHeightForResolve, true);
        box.setCachedHeight(blockHeight);
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.getLayoutNodeType() == 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.