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

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


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

   *
   * @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

    // For legacy reasons: A single ReplacedContent in a paragraph means, we may have a old-style border and
    // background definition.
    if (element.getNodeType() == LayoutNodeTypes.TYPE_BOX_CONTENT)
    {
      final RenderableReplacedContentBox contentBox = (RenderableReplacedContentBox) element;
      final RenderableReplacedContent rpc = contentBox.getContent();
      final Object rawContentObject = rpc.getRawObject();
      if (rawContentObject instanceof DrawableWrapper == false)
      {
        return true;
      }
View Full Code Here

        box.setCachedHeight(blockHeight);
      }
      else if (box.getNodeType() == LayoutNodeTypes.TYPE_BOX_CONTENT)
      {
        // todo: RPC: CACHED-VS-COMPUTED
        final RenderableReplacedContentBox rpc = (RenderableReplacedContentBox) box;
        box.setCachedHeight(ReplacedContentUtil.computeHeight(rpc, 0, box.getCachedWidth()));
      }
      else
      {
        final long cachedHeight = computeCanvasHeight(box, true);
View Full Code Here

      box.setCachedHeight(blockHeight);
    }
    else if (box.getNodeType() == LayoutNodeTypes.TYPE_BOX_CONTENT)
    {
      final long resolveSize = resolveUseableParentHeight(box);
      final RenderableReplacedContentBox rpc = (RenderableReplacedContentBox) box;
      final long computedHeight = ReplacedContentUtil.computeHeight(rpc, resolveSize, box.getCachedWidth());
      box.setCachedHeight(computedHeight);
    }
    else
    {
View Full Code Here

      final long blockHeight = computeRowHeightAndAlign(box, resolveSize);
      box.setCachedHeight(blockHeight);
    }
    else if (box.getNodeType() == LayoutNodeTypes.TYPE_BOX_CONTENT)
    {
      final RenderableReplacedContentBox rpc = (RenderableReplacedContentBox) box;
      final long resolveSize = resolveParentHeight(box);
      box.setCachedHeight(ReplacedContentUtil.computeHeight(rpc, resolveSize, box.getCachedWidth()));
    }
    else
    {
View Full Code Here

      wrapper = new DrawableWrapper(reportDrawable);
    }

    final RenderableReplacedContent content = new RenderableReplacedContent(elementStyle, wrapper, null, metaData);
    final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(elementStyle);
    final RenderableReplacedContentBox child =
        new RenderableReplacedContentBox(elementStyle, element.getObjectID(), boxDefinition,
            element.getElementType(), element.getAttributes(), stateKey, content);
    child.setName(element.getName());
    box.addChild(child);
  }
View Full Code Here

      rawKey = null;
    }

    final RenderableReplacedContent content = new RenderableReplacedContent(elementStyle, value, rawKey, metaData);
    final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(elementStyle);
    final RenderableReplacedContentBox child =
        new RenderableReplacedContentBox(elementStyle, element.getObjectID(), boxDefinition,
            element.getElementType(), element.getAttributes(), stateKey, content);
    child.setName(element.getName());
    box.addChild(child);
  }
View Full Code Here

    // For legacy reasons: A single ReplacedContent in a paragraph means, we may have a old-style border and
    // background definition.
    if (element.getNodeType() == LayoutNodeTypes.TYPE_BOX_CONTENT)
    {
      final RenderableReplacedContentBox contentBox = (RenderableReplacedContentBox) element;
      final RenderableReplacedContent rpc = contentBox.getContent();
      final Object rawContentObject = rpc.getRawObject();
      if (rawContentObject instanceof DrawableWrapper == false)
      {
        return true;
      }
View Full Code Here

TOP

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

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.