Examples of RenderableReplacedContentBox


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

        chunks.add(new AttributedStringChunk(complexNode.getRawText(), computeStyle(node.getStyleSheet()),
            node.getAttributes(), node.getStyleSheet(), node.getInstanceId(), node));
      }
      else if (node.getNodeType() == LayoutNodeTypes.TYPE_BOX_CONTENT)
      {
        final RenderableReplacedContentBox contentBox = (RenderableReplacedContentBox) node;
        final long width = ReplacedContentUtil.computeWidth(contentBox);
        final long height = ReplacedContentUtil.computeHeight(contentBox, 0, width);
        contentBox.setCachedWidth(width);
        contentBox.setCachedHeight(height);
        contentBox.setWidth(width);
        contentBox.setHeight(height);

        chunks.add(new AttributedStringChunk("@", computeImageStyle(node.getStyleSheet(), contentBox),
            node.getAttributes(), node.getStyleSheet(), node.getInstanceId(), node));
      }
      else if (node instanceof RenderBox)
View Full Code Here

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

   *
   * @return
   */
  public long getMinimumWidth(final RenderNode node)
  {
    final RenderableReplacedContentBox rpc = (RenderableReplacedContentBox) node;
    return ReplacedContentUtil.computeWidth(rpc);
  }
View Full Code Here

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

   *
   * @return
   */
  public long getMaximumWidth(final RenderNode node)
  {
    final RenderableReplacedContentBox rpc = (RenderableReplacedContentBox) node;
    final long width = ReplacedContentUtil.computeWidth(rpc);
    return Math.max(width, node.getMaximumBoxWidth());
  }
View Full Code Here

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

    // background definition.
    if (box.getNodeType() != LayoutNodeTypes.TYPE_BOX_CONTENT)
    {
      return null;
    }
    final RenderableReplacedContentBox contentBox = (RenderableReplacedContentBox) box;

    final StyleSheet styleSheet = box.getStyleSheet();
    final RenderableReplacedContent rpc = contentBox.getContent();
    final Object rawContentObject = rpc.getRawObject();
    if (rawContentObject instanceof DrawableWrapper == false)
    {
      return null;
    }
View Full Code Here

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

      // having to compute the whole v-align for the whole line.
      breakState.init(paragraphBox);
    }
    else if (layoutNodeType == LayoutNodeTypes.TYPE_BOX_CONTENT)
    {
      final RenderableReplacedContentBox contentBox = (RenderableReplacedContentBox) box;
      contentBox.setCachedHeight(ReplacedContentUtil.computeHeight
          (contentBox, 0, contentBox.getCachedWidth()));

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

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

        // having to compute the whole v-align for the whole line.
        breakState.init(paragraphBox);
      }
      else if (nodeType == LayoutNodeTypes.TYPE_BOX_CONTENT)
      {
        final RenderableReplacedContentBox rpc = (RenderableReplacedContentBox) box;
        final long computedHeight = ReplacedContentUtil.computeHeight(rpc, 0, box.getCachedWidth());
        box.setCachedHeight(computedHeight);
      }
      return true;
    }
View Full Code Here

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

      // having to compute the whole v-align for the whole line.
      breakState.init(paragraphBox);
    }
    else if (layoutNodeType == LayoutNodeTypes.TYPE_BOX_CONTENT)
    {
      final RenderableReplacedContentBox rpc = (RenderableReplacedContentBox) box;
      box.setCachedHeight(ReplacedContentUtil.computeHeight(rpc, 0, box.getCachedWidth()));
    }


    return true;
View Full Code Here

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

    else
    {
      elementStyle = resolverStyleSheet;
    }

    final RenderableReplacedContentBox child =
        renderNodeFactory.createReplacedContent(element, elementStyle, value, rawValue, stateKey);
    child.setName(element.getName());
    this.context.addChild(child);
    this.context.setEmpty(false);
  }
View Full Code Here

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

      BaseFont baseFont = pdfTextSpec.getFontMetrics().getBaseFont();
      Font font = new Font(baseFont, size.floatValue(), style, paint);

      if (c.getOriginatingTextNode() instanceof RenderableReplacedContentBox)
      {
        RenderableReplacedContentBox content = (RenderableReplacedContentBox) c.getOriginatingTextNode();
        com.lowagie.text.Image image = imageHandler.createImage(content);
        if (image != null)
        {
          Chunk chunk = new Chunk(image, 0, 0);
        //  chunk.setFont(font);
View Full Code Here

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

          final long blockHeight = computeRowHeightAndAlign(box, parentHeightForResolve, false);
          box.setCachedHeight(blockHeight);
        }
        else if (nodeType == LayoutNodeTypes.TYPE_BOX_CONTENT)
        {
          final RenderableReplacedContentBox rpc = (RenderableReplacedContentBox) box;
          box.setCachedHeight(ReplacedContentUtil.computeHeight(rpc, parentHeightForResolve, box.getCachedWidth()));
        }
        else
        {
          final long cachedHeight = computeCanvasHeight(box, parentHeightForResolve == 0);
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.