Examples of BoxAlignContext


Examples of org.jfree.layouting.renderer.process.valign.BoxAlignContext

    if (breakState == null || breakState.isSuspended())
    {
      return;
    }

    final BoxAlignContext boxAlignContext = breakState.closeContext();


    // This aligns all direct childs. Once that is finished, we have to
    // check, whether possibly existing inner-paragraphs are still valid
    // or whether moving them violated any of the inner-pagebreak constraints.
View Full Code Here

Examples of org.jfree.layouting.renderer.process.valign.BoxAlignContext

    public void openContext (BoxAlignContext context)
    {
      if (contexts.isEmpty() == false)
      {
        final BoxAlignContext boxAlignContext =
            (BoxAlignContext) contexts.peek();
        boxAlignContext.addChild(context);
      }
      contexts.push (context);
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.valign.BoxAlignContext

      }
      proc.performLastLineAlignment();
      proc.deinitialize();

      // Now Perform the vertical layout for the last line of the paragraph.
      final BoxAlignContext valignContext = createVerticalAlignContext(mergedLine);
      final StaticBoxLayoutProperties blp = mergedLine.getStaticBoxLayoutProperties();
      final BoxDefinition bdef = mergedLine.getBoxDefinition();
      final long insetTop = (blp.getBorderTop() + bdef.getPaddingTop());

      final long contentAreaY1 = mergedLine.getCachedY() + insetTop;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.valign.BoxAlignContext

  }


  private BoxAlignContext createVerticalAlignContext(final InlineRenderBox box)
  {
    BoxAlignContext alignContext = new BoxAlignContext(box);
    final FastStack contextStack = new FastStack(50);
    final FastStack alignContextStack = new FastStack(50);
    RenderNode next = box.getFirstChild();
    RenderBox context = box;

    while (next != null)
    {
      // process next
      if ((next.getNodeType() & LayoutNodeTypes.MASK_BOX_INLINE) == LayoutNodeTypes.MASK_BOX_INLINE)
      {
        final RenderBox nBox = (RenderBox) next;
        final RenderNode firstChild = nBox.getFirstChild();
        if (firstChild != null)
        {
          // Open a non-empty box context
          contextStack.push(context);
          alignContextStack.push(alignContext);

          next = firstChild;

          final BoxAlignContext childBoxContext = new BoxAlignContext(nBox);
          alignContext.addChild(childBoxContext);
          context = nBox;
          alignContext = childBoxContext;
        }
        else
        {
          // Process an empty box.
          final BoxAlignContext childBoxContext = new BoxAlignContext(nBox);
          alignContext.addChild(childBoxContext);
          next = nBox.getNext();
        }
      }
      else
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.valign.BoxAlignContext

    currentLine = context;
  }

  public BoxAlignContext closeContext()
  {
    final BoxAlignContext context = (BoxAlignContext) contexts.pop();
    context.validate();
    if (contexts.isEmpty())
    {
      currentLine = null;
    }
    else
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.valign.BoxAlignContext

    return currentLine;
  }

  public void openContext(final RenderBox box)
  {
    final BoxAlignContext context = new BoxAlignContext(box);
    if (currentLine != null)
    {
      currentLine.addChild(context);
    }
    contexts.push(context);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.valign.BoxAlignContext

    currentLine = context;
  }

  public BoxAlignContext closeContext()
  {
    final BoxAlignContext context = contexts.pop();
    context.validate();
    if (contexts.isEmpty())
    {
      currentLine = null;
    }
    else
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.valign.BoxAlignContext

      }
      proc.performLastLineAlignment();
      proc.deinitialize();

      // Now Perform the vertical layout for the last line of the paragraph.
      final BoxAlignContext valignContext = createVerticalAlignContext(mergedLine);
      final StaticBoxLayoutProperties blp = mergedLine.getStaticBoxLayoutProperties();
      final BoxDefinition bdef = mergedLine.getBoxDefinition();
      final long insetTop = (blp.getBorderTop() + bdef.getPaddingTop());

      final long contentAreaY1 = mergedLine.getCachedY() + insetTop;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.valign.BoxAlignContext

    }
  }

  private BoxAlignContext createVerticalAlignContext(final InlineRenderBox box)
  {
    BoxAlignContext alignContext = new BoxAlignContext(box);
    final FastStack<RenderBox> contextStack = new FastStack<RenderBox>(50);
    final FastStack<AlignContext> alignContextStack = new FastStack<AlignContext>(50);
    RenderNode next = box.getFirstChild();
    RenderBox context = box;

    while (next != null)
    {
      // process next
      final int nodeType = next.getLayoutNodeType();
      if ((nodeType & LayoutNodeTypes.MASK_BOX_INLINE) == LayoutNodeTypes.MASK_BOX_INLINE)
      {
        final RenderBox nBox = (RenderBox) next;
        final RenderNode firstChild = nBox.getFirstChild();
        if (firstChild != null)
        {
          // Open a non-empty box context
          contextStack.push(context);
          alignContextStack.push(alignContext);

          next = firstChild;

          final BoxAlignContext childBoxContext = new BoxAlignContext(nBox);
          alignContext.addChild(childBoxContext);
          context = nBox;
          alignContext = childBoxContext;
        }
        else
        {
          // Process an empty box.
          final BoxAlignContext childBoxContext = new BoxAlignContext(nBox);
          alignContext.addChild(childBoxContext);
          next = nBox.getNext();
        }
      }
      else
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.valign.BoxAlignContext

    if (breakState.isActive() == false || breakState.isSuspended())
    {
      return;
    }

    final BoxAlignContext boxAlignContext = breakState.closeContext();

    // This aligns all direct childs. Once that is finished, we have to
    // check, whether possibly existing inner-paragraphs are still valid
    // or whether moving them violated any of the inner-pagebreak constraints.
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.