Package org.jfree.layouting.renderer.model

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


  protected boolean startBlockBox(final BlockRenderBox box)
  {
    if (box instanceof ParagraphRenderBox)
    {
      ParagraphRenderBox paragraphBox = (ParagraphRenderBox) box;
      final boolean unchanged =
              paragraphBox.getPool().getChangeTracker() == paragraphBox.getLineBoxAge();

      if (unchanged)
      {
        final ParagraphRenderBox derivedParagraph = (ParagraphRenderBox) box.derive(true);
        breakState.getInsertationPoint().addGeneratedChild(derivedParagraph);
        final ParagraphLineBreakState item = new ParagraphLineBreakState(derivedParagraph, true);
        paragraphNesting.push(item);
        breakState = item;
        return false;
View Full Code Here


      // This is the first test case whether it is possible to avoid
      // composition-recursion on such computations. I'd prefer to have
      // an iterator pattern here ...

      // finally update the change tracker ..
      final ParagraphRenderBox paraBox = (ParagraphRenderBox) box;
      paraBox.setLineBoxAge(paraBox.getPool().getChangeTracker());

      paragraphNesting.pop();
      if (paragraphNesting.isEmpty())
      {
        breakState = null;
View Full Code Here

  protected void processInlineLevelChild (final RenderNode node)
  {
    if (node instanceof ParagraphRenderBox)
    {
      ParagraphRenderBox box = (ParagraphRenderBox) node;
      if (startInlineLevelBox(box))
      {
        processParagraphChilds(box);
      }
      finishInlineLevelBox(box);
View Full Code Here

      }
      processFlow(box);
    }
    else if (node instanceof ParagraphRenderBox)
    {
      ParagraphRenderBox box = (ParagraphRenderBox) node;
      if (startBlockLevelBox(box))
      {
        processParagraphChilds(box);
      }
      finishBlockLevelBox(box);
View Full Code Here

    if (box instanceof ParagraphRenderBox)
    {
      // No margins, no additional checks. And we can be sure that this one
      // is the only child. (This is a cheap shortcut).
      final ParagraphRenderBox paragraph = (ParagraphRenderBox) box;
      final RenderNode linebox = paragraph.getLineboxContainer();
      box.setMinimumChunkWidth(hbp + linebox.getMinimumChunkWidth());
      box.setMaximumBoxWidth(hbp + linebox.getMaximumBoxWidth());
      box.setIcmMetricsFinished(box.isOpen() == false);
      return;
    }
View Full Code Here

      TableCellRenderBox cellBox = (TableCellRenderBox) box;
      Log.debug ("CELL: Position: " + cellBox.getColumnIndex());
    }
    else if (box instanceof ParagraphRenderBox)
    {
      ParagraphRenderBox paraBox = (ParagraphRenderBox) box;
      Log.debug ("-----------------------------------------------------");
      printBox(paraBox.getLineboxContainer(), level + 1);
      Log.debug ("-----------------------------------------------------");
    }

    printChilds(box, level);
  }
View Full Code Here

    this.pageContext = pageContext.update(context);

    final BoxDefinition definition =
        boxDefinitionFactory.createBlockBoxDefinition
            (context, layoutProcess.getOutputMetaData());
    ParagraphRenderBox paragraphBox =
        new ParagraphRenderBox(definition);
    paragraphBox.appyStyle(context, layoutProcess.getOutputMetaData());
    paragraphBox.setPageContext(pageContext.getPageContext());

    final RenderBox insertationPoint = getInsertationPoint();
    insertationPoint.addChild(paragraphBox);

    // tryValidateOutput();
View Full Code Here

  protected boolean startBlockBox(BlockRenderBox box)
  {
    if (box instanceof ParagraphRenderBox)
    {
      ParagraphRenderBox paragraphBox = (ParagraphRenderBox) box;
      final boolean unchanged =
              paragraphBox.getPool().getChangeTracker() == paragraphBox.getLineBoxAge();

      if (unchanged)
      {
        final ParagraphRenderBox derivedParagraph = (ParagraphRenderBox) box.derive(true);
        breakState.getInsertationPoint().addGeneratedChild(derivedParagraph);
        final ParagraphLineBreakState item = new ParagraphLineBreakState(derivedParagraph, true);
        paragraphNesting.push(item);
        breakState = item;
        return false;
View Full Code Here

      // This is the first test case whether it is possible to avoid
      // composition-recursion on such computations. I'd prefer to have
      // an iterator pattern here ...

      // finally update the change tracker ..
      ParagraphRenderBox paraBox = (ParagraphRenderBox) box;
      paraBox.setLineBoxAge(paraBox.getPool().getChangeTracker());

      paragraphNesting.pop();
      if (paragraphNesting.isEmpty())
      {
        breakState = null;
View Full Code Here

  protected void finishBlockLevelBox(final RenderBox box)
  {
    if (box instanceof ParagraphRenderBox)
    {
      final ParagraphRenderBox paragraph = (ParagraphRenderBox) box;
      finishParagraph(paragraph);
      return;
    }
    else if (box instanceof TableRenderBox)
    {
View Full Code Here

TOP

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

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.