Package java.awt.geom

Examples of java.awt.geom.RoundRectangle2D$Float


    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


    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

    /**
     * @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

    /**
     * @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

    /**
     * @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

    /**
     * @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

   
       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

      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

    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

     *                    at the four corners.
     * @see        java.awt.Graphics#fillRoundRect
     */
    public void drawRoundRect(int x, int y, int width, int height,
                              int arcWidth, int arcHeight){
        RoundRectangle2D rect = new RoundRectangle2D.Float(x, y, width, height, arcWidth, arcHeight);
        draw(rect);
    }
View Full Code Here

TOP

Related Classes of java.awt.geom.RoundRectangle2D$Float

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.