Package org.jfree.layouting.renderer.border

Examples of org.jfree.layouting.renderer.border.BorderCorner


  {
    final BorderEdge rightEdge = border.getRight();
    color = rightEdge.getColor();
    stroke = createStroke(rightEdge, borderSizes.getRight());

    final BorderCorner firstCorner = border.getBottomRight();
    final BorderCorner secondCorner = border.getTopRight();

    draw(generateCorner(CORNER_RIGHT_BOTTOM, x + width, y + height, firstCorner, false));
    draw(generateCorner(CORNER_RIGHT_TOP, x + width, y, secondCorner, false));
    fill(generateCorner(CORNER_RIGHT_BOTTOM, x + width, y + height, firstCorner, true));
    fill(generateCorner(CORNER_RIGHT_TOP, x + width, y, secondCorner, true));

    draw(new Line2D.Double
        (x + width - firstCorner.getWidth().getValue(),
            y + height - firstCorner.getHeight().getValue(),
            x + width - secondCorner.getWidth().getValue(),
            y + secondCorner.getHeight().getValue()));

  }
View Full Code Here


  }

  private void generateBottomEdge()
  {
    final BorderEdge bottomEdge = border.getBottom();
    final BorderCorner firstCorner = border.getBottomLeft();
    final BorderCorner secondCorner = border.getBottomRight();

    color = bottomEdge.getColor();
    stroke = createStroke(bottomEdge, borderSizes.getBottom());

    draw(generateCorner(CORNER_BOTTOM_LEFT, x, y + height, firstCorner, false));
    draw(generateCorner(CORNER_BOTTOM_RIGHT, x + width, y + height, secondCorner, false));
    fill(generateCorner(CORNER_BOTTOM_LEFT, x, y + height, firstCorner, true));
    fill(generateCorner(CORNER_BOTTOM_RIGHT, x + width, y + height, secondCorner, true));

    draw(new Line2D.Double
        (x + firstCorner.getWidth().getValue(),
            y + height - firstCorner.getHeight().getValue(),
            x + width - secondCorner.getWidth().getValue(),
            y + height - secondCorner.getHeight().getValue()));

  }
View Full Code Here

  private void generateLeftEdge()
  {
    final BorderEdge leftEdge = border.getLeft();

    final BorderCorner firstCorner = border.getTopLeft();
    final BorderCorner secondCorner = border.getBottomLeft();

    stroke = createStroke(leftEdge, borderSizes.getLeft());
    color = leftEdge.getColor();

    draw(generateCorner
        (CORNER_LEFT_TOP, x, y, firstCorner, false));
    draw(generateCorner
        (CORNER_LEFT_BOTTOM, x, y + height, secondCorner, false));
    fill(generateCorner
        (CORNER_LEFT_TOP, x, y, firstCorner, true));
    fill(generateCorner
        (CORNER_LEFT_BOTTOM, x, y + height, secondCorner, true));

    final double firstWidth =
        StrictGeomUtility.toInternalValue(firstCorner.getWidth().getValue());
    final double firstHeight =
        StrictGeomUtility.toInternalValue(firstCorner.getHeight().getValue());
    final double secondWidth =
        StrictGeomUtility.toInternalValue(secondCorner.getWidth().getValue());
    final double secondHeight =
        StrictGeomUtility.toInternalValue(secondCorner.getHeight().getValue());
    draw(new Line2D.Double
        (x + firstWidth,
            y + firstHeight,
            x + secondWidth,
            y + height - secondHeight));
View Full Code Here

  {
    final BorderEdge topEdge = border.getTop();
    stroke = createStroke(topEdge, borderSizes.getTop());
    color = topEdge.getColor();

    final BorderCorner firstCorner = border.getTopLeft();
    final BorderCorner secondCorner = border.getBottomLeft();

    draw(generateCorner
        (CORNER_TOP_RIGHT, x + width, y, border.getTopRight(), false));
    draw(generateCorner
        (CORNER_TOP_LEFT, x, y, border.getTopLeft(), false));

    final double firstWidth =
        StrictGeomUtility.toInternalValue(firstCorner.getWidth().getValue());
    final double firstHeight =
        StrictGeomUtility.toInternalValue(firstCorner.getHeight().getValue());
    final double secondWidth =
        StrictGeomUtility.toInternalValue(secondCorner.getWidth().getValue());
    final double secondHeight =
        StrictGeomUtility.toInternalValue(secondCorner.getHeight().getValue());
    draw(new Line2D.Double
        (x + firstWidth, y + firstHeight,
            x + width - secondWidth, y + secondHeight));

    fill(generateCorner
View Full Code Here

  {
    final BorderEdge rightEdge = border.getRight();
    color = rightEdge.getColor();
    stroke = createStroke(rightEdge, borderSizes.getRight());

    final BorderCorner firstCorner = border.getBottomRight();
    final BorderCorner secondCorner = border.getTopRight();

    draw(generateCorner(CORNER_RIGHT_BOTTOM, x + width, y + height, firstCorner, false));
    draw(generateCorner(CORNER_RIGHT_TOP, x + width, y, secondCorner, false));
    fill(generateCorner(CORNER_RIGHT_BOTTOM, x + width, y + height, firstCorner, true));
    fill(generateCorner(CORNER_RIGHT_TOP, x + width, y, secondCorner, true));

    draw(new Line2D.Double
        (x + width - firstCorner.getWidth().getValue(),
            y + height - firstCorner.getHeight().getValue(),
            x + width - secondCorner.getWidth().getValue(),
            y + secondCorner.getHeight().getValue()));

  }
View Full Code Here

  }

  private void generateBottomEdge()
  {
    final BorderEdge bottomEdge = border.getBottom();
    final BorderCorner firstCorner = border.getBottomLeft();
    final BorderCorner secondCorner = border.getBottomRight();

    color = bottomEdge.getColor();
    stroke = createStroke(bottomEdge, borderSizes.getBottom());

    draw(generateCorner(CORNER_BOTTOM_LEFT, x, y + height, firstCorner, false));
    draw(generateCorner(CORNER_BOTTOM_RIGHT, x + width, y + height, secondCorner, false));
    fill(generateCorner(CORNER_BOTTOM_LEFT, x, y + height, firstCorner, true));
    fill(generateCorner(CORNER_BOTTOM_RIGHT, x + width, y + height, secondCorner, true));

    draw(new Line2D.Double
        (x + firstCorner.getWidth().getValue(),
            y + height - firstCorner.getHeight().getValue(),
            x + width - secondCorner.getWidth().getValue(),
            y + height - secondCorner.getHeight().getValue()));

  }
View Full Code Here

  private void generateLeftEdge()
  {
    final BorderEdge leftEdge = border.getLeft();

    final BorderCorner firstCorner = border.getTopLeft();
    final BorderCorner secondCorner = border.getBottomLeft();

    stroke = createStroke(leftEdge, borderSizes.getLeft());
    color = leftEdge.getColor();

    draw(generateCorner
        (CORNER_LEFT_TOP, x, y, firstCorner, false));
    draw(generateCorner
        (CORNER_LEFT_BOTTOM, x, y + height, secondCorner, false));
    fill(generateCorner
        (CORNER_LEFT_TOP, x, y, firstCorner, true));
    fill(generateCorner
        (CORNER_LEFT_BOTTOM, x, y + height, secondCorner, true));

    final double firstWidth =
        StrictGeomUtility.toInternalValue(firstCorner.getWidth().getValue());
    final double firstHeight =
        StrictGeomUtility.toInternalValue(firstCorner.getHeight().getValue());
    final double secondWidth =
        StrictGeomUtility.toInternalValue(secondCorner.getWidth().getValue());
    final double secondHeight =
        StrictGeomUtility.toInternalValue(secondCorner.getHeight().getValue());
    draw(new Line2D.Double
        (x + firstWidth,
            y + firstHeight,
            x + secondWidth,
            y + height - secondHeight));
View Full Code Here

  {
    final BorderEdge topEdge = border.getTop();
    stroke = createStroke(topEdge, borderSizes.getTop());
    color = topEdge.getColor();

    final BorderCorner firstCorner = border.getTopLeft();
    final BorderCorner secondCorner = border.getBottomLeft();

    draw(generateCorner
        (CORNER_TOP_RIGHT, x + width, y, border.getTopRight(), false));
    draw(generateCorner
        (CORNER_TOP_LEFT, x, y, border.getTopLeft(), false));

    final double firstWidth =
        StrictGeomUtility.toInternalValue(firstCorner.getWidth().getValue());
    final double firstHeight =
        StrictGeomUtility.toInternalValue(firstCorner.getHeight().getValue());
    final double secondWidth =
        StrictGeomUtility.toInternalValue(secondCorner.getWidth().getValue());
    final double secondHeight =
        StrictGeomUtility.toInternalValue(secondCorner.getHeight().getValue());
    draw(new Line2D.Double
        (x + firstWidth, y + firstHeight,
            x + width - secondWidth, y + secondHeight));

    fill(generateCorner
View Full Code Here

  {
    final BorderEdge topEdge = border.getTop();
    stroke = createStroke(topEdge, borderSizes.getTop());
    color = topEdge.getColor();

    final BorderCorner firstCorner = border.getTopLeft();
    final BorderCorner secondCorner = border.getBottomLeft();

    draw(generateCorner
        (CORNER_TOP_RIGHT, x + width, y, border.getTopRight(), false));
    draw(generateCorner
        (CORNER_TOP_LEFT, x, y, border.getTopLeft(), false));

    final double firstWidth =
        StrictGeomUtility.toInternalValue(firstCorner.getWidth().getValue());
    final double firstHeight =
        StrictGeomUtility.toInternalValue(firstCorner.getHeight().getValue());
    final double secondWidth =
        StrictGeomUtility.toInternalValue(secondCorner.getWidth().getValue());
    final double secondHeight =
        StrictGeomUtility.toInternalValue(secondCorner.getHeight().getValue());
    draw(new Line2D.Double
        (x + firstWidth, y + firstHeight,
            x + width - secondWidth, y + secondHeight));

    fill(generateCorner
View Full Code Here

  {
    final BorderEdge rightEdge = border.getRight();
    color = rightEdge.getColor();
    stroke = createStroke(rightEdge, borderSizes.getRight());

    final BorderCorner firstCorner = border.getBottomRight();
    final BorderCorner secondCorner = border.getTopRight();

    draw(generateCorner(CORNER_RIGHT_BOTTOM, x + width, y + height, firstCorner, false));
    draw(generateCorner(CORNER_RIGHT_TOP, x + width, y, secondCorner, false));
    fill(generateCorner(CORNER_RIGHT_BOTTOM, x + width, y + height, firstCorner, true));
    fill(generateCorner(CORNER_RIGHT_TOP, x + width, y, secondCorner, true));

    draw(new Line2D.Double
        (x + width - firstCorner.getWidth().getValue(),
            y + height - firstCorner.getHeight().getValue(),
            x + width - secondCorner.getWidth().getValue(),
            y + secondCorner.getHeight().getValue()));

  }
View Full Code Here

TOP

Related Classes of org.jfree.layouting.renderer.border.BorderCorner

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.