Examples of RoundRectangle2D


Examples of java.awt.geom.RoundRectangle2D

        //draw background
        AffineTransform origAt = localGraph.getTransform();
        AffineTransform newAt = (AffineTransform) (origAt.clone());
        Rectangle2D rect = localGraph.getFontMetrics().getStringBounds(lines[longest], localGraph);
        RoundRectangle2D round =
                new RoundRectangle2D.Double(rect.getX(),
                rect.getY(), rect.getWidth() + (BORDER * 2),
                (rect.getHeight() * lines.length) + (BORDER * 2), 25, 25);
        newAt.rotate(Math.toRadians(angle),
                x,
View Full Code Here

Examples of java.awt.geom.RoundRectangle2D

    return this.headColor;
  }

  protected Shape getComponentHeaderShape() {
    Point position = getNode().getPosition();
    RoundRectangle2D headerBoundaryRect = new RoundRectangle2D.Double(position.x, position.y, this.dimension.width, this.headHeight,DrawUtils.ARC_SIZE, DrawUtils.ARC_SIZE);
    return headerBoundaryRect;
  }
View Full Code Here

Examples of java.awt.geom.RoundRectangle2D

    return paintBodyColor;
  }

  protected Shape getComponentShape() {
    Point position = getNode().getPosition();
        RoundRectangle2D completeComponentBoundaryRect = new RoundRectangle2D.Float(position.x, position.y, this.dimension.width, this.dimension.height, DrawUtils.ARC_SIZE, DrawUtils.ARC_SIZE);
    return completeComponentBoundaryRect;
  }
View Full Code Here

Examples of java.awt.geom.RoundRectangle2D

    /**
     * @see Graphics#drawRoundRect(int, int, int, int, int, int)
     */
    @Override
    public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) {
        RoundRectangle2D rect = new RoundRectangle2D.Double(x,y,width,height,arcWidth, arcHeight);
        draw(rect);
    }
View Full Code Here

Examples of java.awt.geom.RoundRectangle2D

    /**
     * @see Graphics#fillRoundRect(int, int, int, int, int, int)
     */
    @Override
    public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) {
        RoundRectangle2D rect = new RoundRectangle2D.Double(x,y,width,height,arcWidth, arcHeight);
        fill(rect);
    }
View Full Code Here

Examples of java.awt.geom.RoundRectangle2D

    /**
     * @see Graphics#drawRoundRect(int, int, int, int, int, int)
     */
    @Override
    public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) {
        RoundRectangle2D rect = new RoundRectangle2D.Double(x,y,width,height,arcWidth, arcHeight);
        draw(rect);
    }
View Full Code Here

Examples of java.awt.geom.RoundRectangle2D

    /**
     * @see Graphics#fillRoundRect(int, int, int, int, int, int)
     */
    @Override
    public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) {
        RoundRectangle2D rect = new RoundRectangle2D.Double(x,y,width,height,arcWidth, arcHeight);
        fill(rect);
    }
View Full Code Here

Examples of java.awt.geom.RoundRectangle2D

   
       Graphics2D g2 = (Graphics2D)g;
       g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

       int radius = size / 3;
       RoundRectangle2D r = new RoundRectangle2D.Float(x, y, size-1, size-1, radius, radius );
      
       g2.setColor( new Color( 255, 255, 0, 127) );
       g2.fill(r);
      
       g2.setStroke( new BasicStroke(3));
View Full Code Here

Examples of java.awt.geom.RoundRectangle2D

      Graphics2D g2 = (Graphics2D) g;
      g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

      int radius = size / 3;
      RoundRectangle2D r = new RoundRectangle2D.Float(x, y, size - 1, size - 1, radius, radius);

      g2.setColor(new Color(255, 255, 0, 127));
      g2.fill(r);

      g2.setStroke(new BasicStroke(3));
View Full Code Here

Examples of java.awt.geom.RoundRectangle2D

    view = ++view % VIEWS;
  }

  private RoundRectangle2D drawViewButton(double x, double y, Graphics2D g2d, boolean draw, boolean clicked) {
    Rectangle2D dvR;
    RoundRectangle2D dvRR;
    Color tmp;
    Color fg = Color.BLACK;
    Color bg = Color.LIGHT_GRAY;

    if (clicked) {
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.