Package org.jfree.layouting.renderer.model

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


  public long add (final InlineSequenceElement sequenceElement)
  {
    if (sequenceElement instanceof StartSequenceElement)
    {
      final RenderBox box = (RenderBox) sequenceElement.getNode();
      final ComputedLayoutProperties blp = box.getComputedLayoutProperties();
      offset = blp.getBorderTop() + blp.getPaddingTop();
      height = offset + blp.getBorderBottom() + blp.getPaddingBottom();
      return offset;
    }
    if (sequenceElement instanceof EndSequenceElement)
    {
      return offset;
View Full Code Here


   *
   * @return
   */
  public long getMinimumWidth()
  {
    final ComputedLayoutProperties blp = node.getComputedLayoutProperties();
    return blp.getBorderRight() + blp.getPaddingRight() + blp.getMarginRight();
  }
View Full Code Here

   *
   * @return
   */
  public long getMinimumWidth()
  {
    final ComputedLayoutProperties blp = node.getComputedLayoutProperties();
    return blp.getBorderLeft() + blp.getPaddingLeft() + blp.getMarginLeft();
  }
View Full Code Here

    final long effectiveCellPosition = column.getEffectiveCellPosition();
    cellRenderBox.setX(effectiveCellPosition);
    cellRenderBox.setWidth(effectiveSize);

    final ComputedLayoutProperties blp = cellRenderBox.getComputedLayoutProperties();
    // next, compute the width ...

    long leftPadding = blp.getBorderLeft();
    leftPadding += blp.getPaddingLeft();
    cellRenderBox.setContentAreaX1(effectiveCellPosition + leftPadding);

    long rightPadding = blp.getBorderRight();
    rightPadding += blp.getPaddingRight();
    final long contentWidth = effectiveSize - rightPadding;
    cellRenderBox.setContentAreaX2(effectiveCellPosition + contentWidth);
  }
View Full Code Here

    if (box == continuedElement)
    {
      return;
    }

    final ComputedLayoutProperties blp = box.getComputedLayoutProperties();
    final long x = computeX(box) + blp.getMarginLeft();
    box.setX(x);
    // next, compute the width ...

    long leftPadding = blp.getBorderLeft();
    leftPadding += blp.getPaddingLeft();
    box.setContentAreaX1(x + leftPadding);

    final RenderLength computedWidth =
        box.getComputedLayoutProperties().getComputedWidth();
    if (computedWidth == RenderLength.AUTO)
    {
      final RenderBox parent = box.getParent();
      if (parent instanceof BlockRenderBox)
      {
        long rightPadding = blp.getMarginRight();
        rightPadding += blp.getBorderRight();
        rightPadding += blp.getPaddingRight();

        final BlockRenderBox blockParent = (BlockRenderBox) parent;
        box.setContentAreaX2(blockParent.getContentAreaX2() - rightPadding);
      }
      else
View Full Code Here

   */
  private void verifyContentWidth(final RenderBox box)
  {
    final long x = box.getX();
    final long contentEnd = box.getContentAreaX2();
    final ComputedLayoutProperties blp = box.getComputedLayoutProperties();
    final long boxEnd = contentEnd + blp.getBorderRight() + blp.getPaddingRight();
    box.setWidth(boxEnd - x);
  }
View Full Code Here

   *
   * @return
   */
  public long getMinimumWidth()
  {
    final ComputedLayoutProperties blp = box.getComputedLayoutProperties();
    return box.getMinimumChunkWidth() +
        blp.getMarginLeft() + blp.getMarginRight();
  }
View Full Code Here

        blp.getMarginLeft() + blp.getMarginRight();
  }

  public long getMaximumWidth()
  {
    final ComputedLayoutProperties blp = box.getComputedLayoutProperties();
    return box.getMaximumBoxWidth() +
        blp.getMarginLeft() + blp.getMarginRight();
  }
View Full Code Here

    {
      validationTrack = table.getChangeTracker();
      return;
    }

    final ComputedLayoutProperties nlp = table.getComputedLayoutProperties();
    final RenderLength blockContextWidth = nlp.getBlockContextWidth();
    final long bcw = blockContextWidth.resolve(0);

    final RenderLength borderSpacingLength = table.getBorderSpacing();
    borderSpacing = borderSpacingLength.resolve(bcw);
View Full Code Here

  {
    drawOps = new ArrayList();
    fillOps = new ArrayList();

    border = box.getBorder();
    final ComputedLayoutProperties layoutProperties = box.getComputedLayoutProperties();
    final StrictInsets bWidths = new StrictInsets
        (layoutProperties.getBorderTop(), layoutProperties.getBorderLeft(),
            layoutProperties.getBorderBottom(), layoutProperties.getBorderRight());

    x = StrictGeomUtility.toExternalValue
        (box.getX() + (bWidths.getLeft() / 2));
    y = StrictGeomUtility.toExternalValue
        (box.getY() + (bWidths.getTop() / 2));
View Full Code Here

TOP

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

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.