Package org.jfree.layouting.renderer.model

Examples of org.jfree.layouting.renderer.model.FinishedRenderNode


    final long height = last.getY() + last.getHeight() - nodeY;

    // make sure that the finished-box inherits the margins ..
    final long marginsTop = node.getEffectiveMarginTop();
    final long marginsBottom = last.getEffectiveMarginBottom();
    final FinishedRenderNode replacement =
        new FinishedRenderNode(width, height, marginsTop, marginsBottom);

    RenderNode removeNode = node;
    while (removeNode != last)
    {
      final RenderNode next = removeNode.getNext();
      if (removeNode.isOpen())
      {
        throw new IllegalStateException();
      }
      box.remove(removeNode);
      removeNode = next;
    }

    if (last.isOpen())
    {
      throw new IllegalStateException();
    }
    box.replaceChild(last, replacement);
    if (replacement.getParent() != box)
    {
      throw new IllegalStateException();
    }
    return (box.getLastChild() != replacement);
  }
View Full Code Here


    // This could be anything, text, or an image.
    computeYPosition(node);

    if (node instanceof FinishedRenderNode)
    {
      final FinishedRenderNode fnode = (FinishedRenderNode) node;
      node.setHeight(fnode.getLayoutedHeight());
    }
    // Tables can have spacer nodes in weird positions. Actually it is less
    // expensive to filter them here than to kill them earlier.
    // Heck, given infinite time and resources, I will filter them earlier ..
//    throw new IllegalStateException
View Full Code Here

      return;
    }

    if (node instanceof FinishedRenderNode)
    {
      final FinishedRenderNode finNode = (FinishedRenderNode) node;
      node.setWidth(finNode.getLayoutedWidth());
    }

    if (node instanceof RenderableText)
    {
      breakState.add(new TextSequenceElement((RenderableText) node));
View Full Code Here

    // This could be anything, text, or an image.
    final long x = computeX(node);
    node.setX(x);
    if (node instanceof FinishedRenderNode)
    {
      final FinishedRenderNode finNode = (FinishedRenderNode) node;
      node.setWidth(finNode.getLayoutedWidth());
    }
    else
    {
      node.setWidth
          (node.getComputedLayoutProperties().getComputedWidth().resolve(0));
View Full Code Here

    final long height = last.getY() + last.getHeight() - nodeY;

    // make sure that the finished-box inherits the margins ..
    final long marginsTop = node.getEffectiveMarginTop();
    final long marginsBottom = last.getEffectiveMarginBottom();
    final FinishedRenderNode replacement =
        new FinishedRenderNode(width, height, marginsTop, marginsBottom);

    RenderNode removeNode = node;
    while (removeNode != last)
    {
      final RenderNode next = removeNode.getNext();
      if (removeNode.isOpen())
      {
        throw new IllegalStateException();
      }
      box.remove(removeNode);
      removeNode = next;
    }

    if (last.isOpen())
    {
      throw new IllegalStateException();
    }
    box.replaceChild(last, replacement);
    if (replacement.getParent() != box)
    {
      throw new IllegalStateException();
    }
    return (box.getLastChild() != replacement);
  }
View Full Code Here

      return;
    }

    if (node instanceof FinishedRenderNode)
    {
      final FinishedRenderNode finNode = (FinishedRenderNode) node;
      node.setWidth(finNode.getLayoutedWidth());
    }

    if (node instanceof RenderableText)
    {
      breakState.add(new TextSequenceElement((RenderableText) node));
View Full Code Here

    // This could be anything, text, or an image.
    final long x = computeX(node);
    node.setX(x);
    if (node instanceof FinishedRenderNode)
    {
      final FinishedRenderNode finNode = (FinishedRenderNode) node;
      node.setWidth(finNode.getLayoutedWidth());
    }
    else
    {
      node.setWidth
          (node.getComputedLayoutProperties().getComputedWidth().resolve(0));
View Full Code Here

    // This could be anything, text, or an image.
    computeYPosition(node);

    if (node instanceof FinishedRenderNode)
    {
      final FinishedRenderNode fnode = (FinishedRenderNode) node;
      node.setHeight(fnode.getLayoutedHeight());
    }
    // Tables can have spacer nodes in weird positions. Actually it is less
    // expensive to filter them here than to kill them earlier.
    // Heck, given infinite time and resources, I will filter them earlier ..
//    throw new IllegalStateException
View Full Code Here

    // This could be anything, text, or an image.
    computeYPosition(node);

    if (node instanceof FinishedRenderNode)
    {
      FinishedRenderNode fnode = (FinishedRenderNode) node;
      node.setHeight(fnode.getLayoutedHeight());
    }
    // Tables can have spacer nodes in weird positions. Actually it is less
    // expensive to filter them here than to kill them earlier.
    // Heck, given infinite time and resources, I will filter them earlier ..
//    throw new IllegalStateException
View Full Code Here

      return;
    }

    if (node instanceof FinishedRenderNode)
    {
      FinishedRenderNode finNode = (FinishedRenderNode) node;
      node.setWidth(finNode.getLayoutedWidth());
    }

    if (node instanceof RenderableText)
    {
      breakState.add(new TextSequenceElement((RenderableText) node));
View Full Code Here

TOP

Related Classes of org.jfree.layouting.renderer.model.FinishedRenderNode

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.