Package org.pentaho.reporting.engine.classic.core.layout.model

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


    final long x = this.x;
    final long y = this.y;
    final long w = this.width;
    final long h = this.height;

    final Border border = boxDefinition.getBorder();
    final long bottomLeftWidth = border.getBottomLeft().getWidth();
    final long bottomLeftHeight = border.getBottomLeft().getHeight();
    final long bottomRightWidth = border.getBottomRight().getWidth();
    final long bottomRightHeight = border.getBottomRight().getHeight();

    if (bottomLeftWidth == 0 && bottomRightWidth == 0 && bottomLeftHeight == 0 && bottomRightHeight == 0)
    {
      // Make a square corner
      final double lineX1 = StrictGeomUtility.toExternalValue(x);
View Full Code Here


    final long halfBorderWidth = sblp.getBorderLeft() / 2;
    final long x = this.x;
    final long y = this.y;
    final long h = this.height;

    final Border border = boxDefinition.getBorder();
    final long topLeftWidth = border.getTopLeft().getWidth();
    final long topLeftHeight = border.getTopLeft().getHeight();
    final long bottomLeftWidth = border.getBottomLeft().getWidth();
    final long bottomLeftHeight = border.getBottomLeft().getHeight();

    if (bottomLeftWidth == 0 && topLeftWidth == 0 && bottomLeftHeight == 0 && topLeftHeight == 0)
    {
      // Make a square corner
      final double lineX = StrictGeomUtility.toExternalValue(x + halfBorderWidth);
View Full Code Here

    final long x = this.x;
    final long y = this.y;
    final long w = this.width;
    final long h = this.height;

    final Border border = boxDefinition.getBorder();
    final long topRightWidth = border.getTopRight().getWidth();
    final long topRightHeight = border.getTopRight().getHeight();
    final long bottomRightWidth = border.getBottomRight().getWidth();
    final long bottomRightHeight = border.getBottomRight().getHeight();

    if (topRightWidth == 0 && bottomRightWidth == 0 && topRightHeight == 0 && bottomRightHeight == 0)
    {
      // Make a square corner
      final double lineX = StrictGeomUtility.toExternalValue(x + w - halfBorderWidth);
View Full Code Here

      sblp.setBorderRight(0);
      sblp.setBorderLeft(0);
    }
    else
    {
      final Border border = boxDefinition.getBorder();
      sblp.setBorderTop(border.getTop().getWidth());
      sblp.setBorderLeft(border.getLeft().getWidth());
      sblp.setBorderBottom(border.getBottom().getWidth());
      sblp.setBorderRight(border.getRight().getWidth());
    }
  }
View Full Code Here

  private static CellBackground applyBorder(final RenderBox content,
                                            CellBackground retval,
                                            final int backgroundHint)
  {
    final Border border = content.getBoxDefinition().getBorder();
    if (border.isEmpty())
    {
      return retval;
    }

    if ((backgroundHint & BACKGROUND_TOP) == BACKGROUND_TOP)
    {
      final BorderEdge borderEdgeTop = border.getTop();
      if (borderEdgeTop.isEmpty() == false)
      {
        if (retval == null)
        {
          retval = new CellBackground();
        }
        retval.setTop(borderEdgeTop);
      }
    }

    if ((backgroundHint & BACKGROUND_LEFT) == BACKGROUND_LEFT)
    {
      final BorderEdge borderEdgeLeft = border.getLeft();
      if (borderEdgeLeft.isEmpty() == false)
      {
        if (retval == null)
        {
          retval = new CellBackground();
        }
        retval.setLeft(borderEdgeLeft);
      }
    }

    if ((backgroundHint & BACKGROUND_BOTTOM) == BACKGROUND_BOTTOM)
    {
      final BorderEdge borderEdgeBottom = border.getBottom();
      if (borderEdgeBottom.isEmpty() == false)
      {
        if (retval == null)
        {
          retval = new CellBackground();
        }
        retval.setBottom(borderEdgeBottom);
      }
    }

    if ((backgroundHint & BACKGROUND_RIGHT) == BACKGROUND_RIGHT)
    {
      final BorderEdge borderEdgeRight = border.getRight();
      if (borderEdgeRight.isEmpty() == false)
      {
        if (retval == null)
        {
          retval = new CellBackground();
View Full Code Here

      final BorderCorner bottmLeftCorner = createCorner
          (style, ElementStyleKeys.BORDER_BOTTOM_LEFT_RADIUS_WIDTH, ElementStyleKeys.BORDER_BOTTOM_LEFT_RADIUS_HEIGHT);
      final BorderCorner bottomRightCorner = createCorner
          (style, ElementStyleKeys.BORDER_BOTTOM_RIGHT_RADIUS_WIDTH,
              ElementStyleKeys.BORDER_BOTTOM_RIGHT_RADIUS_HEIGHT);
      box.setBorder(new Border(edgeTop, edgeLeft, edgeBottom, edgeRight, edgeBreak,
          topLeftCorner, topRightCorner, bottmLeftCorner, bottomRightCorner));
    }
    box.lock();
    return box;
  }
View Full Code Here

    if (currentTable.table.isPredefinedColumnsValidated())
    {
      return;
    }

    final Border border = node.getBoxDefinition().getBorder();
    final RenderLength length = node.getBoxDefinition().getMinimumWidth();

    if (currentColumnGroup != null)
    {
      currentColumnGroup.addColumn(new TableColumn(border, length, false));
View Full Code Here

    }

    final StaticBoxLayoutProperties sblp = new StaticBoxLayoutProperties();

    final BoxDefinition definition = boxDefinitionFactory.getBoxDefinition(elementStyleSheet);
    final Border border = definition.getBorder();
    sblp.setBorderTop(border.getTop().getWidth());
    sblp.setBorderLeft(border.getLeft().getWidth());
    sblp.setBorderBottom(border.getBottom().getWidth());
    sblp.setBorderRight(border.getRight().getWidth());

    borderRenderer.paintBackgroundAndBorder(sblp, definition, elementStyleSheet,
        StrictGeomUtility.toInternalValue(10),
        StrictGeomUtility.toInternalValue(10),
        StrictGeomUtility.toInternalValue(Math.max(80, getWidth() - 20)),
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.layout.model.Border

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.