Examples of InlineRenderBox


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

  }

  public void testComplexCase2()
  {
    final DefaultSequenceList list = new DefaultSequenceList();
    list.add(StartSequenceElement.INSTANCE, new InlineRenderBox());
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(EndSequenceElement.INSTANCE, new InlineRenderBox());

    final RightAlignmentProcessor p = new RightAlignmentProcessor();
    p.initialize(outputProcessorMetaData, list,
        StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(60), pageGrid, false);
    int count = 0;
View Full Code Here

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

  }

  public void testComplexCase()
  {
    final DefaultSequenceList list = new DefaultSequenceList();
    list.add(StartSequenceElement.INSTANCE, new InlineRenderBox());
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(EndSequenceElement.INSTANCE, new InlineRenderBox());

    final RightAlignmentProcessor p = new RightAlignmentProcessor();
    p.initialize(outputProcessorMetaData, list,
        StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(40), pageGrid, false);
    int count = 0;
View Full Code Here

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

  }

  public void testSimpleCase()
  {
    final DefaultSequenceList list = new DefaultSequenceList();
    list.add(StartSequenceElement.INSTANCE, new InlineRenderBox());
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode());
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(EndSequenceElement.INSTANCE, new InlineRenderBox());

    final CenterAlignmentProcessor p = new CenterAlignmentProcessor();
    p.initialize(outputProcessorMetaData, list,
        StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(90), pageGrid, false);
    assertTrue(p.hasNext());
View Full Code Here

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

  }

  public void testComplexCase2()
  {
    final DefaultSequenceList list = new DefaultSequenceList();
    list.add(StartSequenceElement.INSTANCE, new InlineRenderBox());
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(EndSequenceElement.INSTANCE, new InlineRenderBox());

    final CenterAlignmentProcessor p = new CenterAlignmentProcessor();
    p.initialize(outputProcessorMetaData, list,
        StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(60), pageGrid, false);
    int count = 0;
View Full Code Here

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

  }

  public void testComplexCase()
  {
    final DefaultSequenceList list = new DefaultSequenceList();
    list.add(StartSequenceElement.INSTANCE, new InlineRenderBox());
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode
        (StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(10), false, 1));
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(EndSequenceElement.INSTANCE, new InlineRenderBox());

    final CenterAlignmentProcessor p = new CenterAlignmentProcessor();
    p.initialize(outputProcessorMetaData, list,
        StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(40), pageGrid, false);
    int count = 0;
View Full Code Here

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

   *
   * @return
   */
  public long getMinimumWidth(final RenderNode node)
  {
    final InlineRenderBox box = (InlineRenderBox) node;
    final StaticBoxLayoutProperties blp = box.getStaticBoxLayoutProperties();
    final BoxDefinition bdef = box.getBoxDefinition();
    return blp.getBorderLeft() + bdef.getPaddingLeft() + blp.getMarginLeft();
  }
View Full Code Here

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

  }


  public boolean isPreserveWhitespace(final RenderNode node)
  {
    final InlineRenderBox box = (InlineRenderBox) node;
    return box.getStaticBoxLayoutProperties().isPreserveSpace();
  }
View Full Code Here

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

        }
        finishCanvasBox(box);
      }
      else if ((nodeType & LayoutNodeTypes.MASK_BOX_INLINE) == LayoutNodeTypes.MASK_BOX_INLINE)
      {
        final InlineRenderBox box = (InlineRenderBox) node;
        if (startInlineBox(box))
        {
          processBoxChilds(box);
        }
        finishInlineBox(box);
View Full Code Here

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

    {
      final RenderBox renderBox = contexts.get(i);
      final long cachedWidth = getEndOfLine() - renderBox.getCachedX();
      renderBox.setCachedWidth(cachedWidth);

      final InlineRenderBox rightBox = (InlineRenderBox) renderBox.split(RenderNode.HORIZONTAL_AXIS);
      sequenceElements[i] = StartSequenceElement.INSTANCE;
      nodes[i] = rightBox;
      if (previousContext != null)
      {
        previousContext.addGeneratedChild(renderBox);
View Full Code Here

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

  }

  public void testSimpleCase()
  {
    final DefaultSequenceList list = new DefaultSequenceList();
    list.add(StartSequenceElement.INSTANCE, new InlineRenderBox());
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(SpacerSequenceElement.INSTANCE, new SpacerRenderNode());
    list.add(TextSequenceElement.INSTANCE, createText("Test"));
    list.add(EndSequenceElement.INSTANCE, new InlineRenderBox());

    final LeftAlignmentProcessor p = new LeftAlignmentProcessor();
    p.initialize(outputProcessorMetaData, list,
        StrictGeomUtility.toInternalValue(10), StrictGeomUtility.toInternalValue(90), pageGrid, false);
    assertTrue(p.hasNext());
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.