Package java.awt.geom

Examples of java.awt.geom.RoundRectangle2D$Iterator


            } else
            if (shape instanceof Rectangle2D) {
                shapeDesc = "rect(" + shapeDesc + ")";
            } else
            if (shape instanceof RoundRectangle2D) {
                RoundRectangle2D rr = (RoundRectangle2D)shape;
                shapeDesc = "round(" + shapeDesc + "," +
                    doubleToStr(rr.getArcWidth()) + "," +
                    doubleToStr(rr.getArcHeight()) + ")";
            } else
            if (shape instanceof Arc2D) {
                Arc2D a = (Arc2D)shape;
                shapeDesc = "arc(" + shapeDesc + "," +
                    doubleToStr(a.getAngleStart()) + "," +
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

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

            } else
            if (shape instanceof Rectangle2D) {
                shapeDesc = "rect(" + shapeDesc + ")";
            } else
            if (shape instanceof RoundRectangle2D) {
                RoundRectangle2D rr = (RoundRectangle2D)shape;
                shapeDesc = "round(" + shapeDesc + "," +
                    doubleToStr(rr.getArcWidth()) + "," +
                    doubleToStr(rr.getArcHeight()) + ")";
            } else
            if (shape instanceof Arc2D) {
                Arc2D a = (Arc2D)shape;
                shapeDesc = "arc(" + shapeDesc + "," +
                    doubleToStr(a.getAngleStart()) + "," +
View Full Code Here

        int height = getHeight();

        Graphics2D contentGraphics = (Graphics2D)graphics.create();

        // Paint the background
        RoundRectangle2D buttonRectangle = new RoundRectangle2D.Double(0, 0,
            width - 1, height - 1, cornerRadius, cornerRadius);

        graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
            RenderingHints.VALUE_ANTIALIAS_ON);
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

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

  private int width = (int)widthDouble;
  private int height = (int)heightDouble;
  private final int rounding = 75;
  public Frame(){
    //SHAPE
    RoundRectangle2D shape = new RoundRectangle2D.Double(0, 0, width, height, rounding, rounding);
       
    //FRAME
   
    this.setVisible(false);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
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

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

TOP

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

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.