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 LeftAlignmentProcessor p = new LeftAlignmentProcessor();
    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 LeftAlignmentProcessor p = new LeftAlignmentProcessor();
    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.getBorderRight() + bdef.getPaddingRight() + blp.getMarginRight();
  }
View Full Code Here

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

    return getMinimumWidth(node);
  }

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

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

      if ((context.getLayoutNodeType() & LayoutNodeTypes.MASK_BOX_INLINE) != LayoutNodeTypes.MASK_BOX_INLINE)
      {
        throw new IllegalStateException("Confused: I expect InlineBoxes ..");
      }

      final InlineRenderBox inline = (InlineRenderBox) context;
      contexts.push(inline.split(RenderNode.HORIZONTAL_AXIS));
      context = context.getParent();
    }

    // reset to a known state and add all saved contexts ..
    insertationPoint = lines;
View Full Code Here

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

    {
      // The non-inheritable styles will be applied to the auto-generated paragraph box. The inlinebox itself
      // only receives the inheritable styles so that it can inherit it to its next child ..
      final SimpleStyleSheet styleSheet = bandCache.getStyleSheet(new ParagraphPoolboxStyleSheet(elementStyleSheet));
      final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(styleSheet);
      return new InlineRenderBox(styleSheet, objectID, boxDefinition, elementType, attributes, stateKey);
    }
    else if (BandStyleKeys.LAYOUT_INLINE.equals(layoutType))
    {
      final SimpleStyleSheet styleSheet = bandCache.getStyleSheet(elementStyleSheet);
      final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(styleSheet);
      return new InlineRenderBox(styleSheet, objectID, boxDefinition, elementType, attributes, stateKey);
    }
    if (BandStyleKeys.LAYOUT_ROW.equals(layoutType))
    {
      final SimpleStyleSheet styleSheet = bandCache.getStyleSheet(elementStyleSheet);
      final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(styleSheet);
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.