Package java.awt

Examples of java.awt.Graphics2D.fillOval()


            : new GradientPaint(-1200, -1200, Color.GRAY, 1200, 1200, Color.LIGHT_GRAY));
        g2.fillOval(-1000, -1000, 2000, 2000);
        g2.setPaint(this.isEnabled()
            ? new GradientPaint(-1200, -1200, Color.CYAN, 1200, 1200, Color.BLUE)
            : new GradientPaint(-1200, -1200, Color.LIGHT_GRAY, 1200, 1200, Color.GRAY));
        g2.fillOval(-900, -900, 1800, 1800);
        g2.setColor(Color.BLACK);
        g2.drawOval(-1000, -1000, 2000, 2000);      
       
        // Pinto las marcas pequenas, los minutos
        for (int i = 0; i < 60; i++) {
View Full Code Here


                    g2.setColor(Color.DARK_GRAY);
                    g2.drawPolygon(new int[]{-15, 0, 15}, new int[]{200, -900, 200}3);  

                    g2.setTransform(mytrans);      
                    g2.setColor(Color.YELLOW);
                    g2.fillOval(-25, -25, 50, 50);
                    g2.setColor(Color.DARK_GRAY);
                    g2.drawOval(-25, -25, 50, 50);
                }
            }
        }
View Full Code Here

            }
        }
       
        // Pinto el tornillo central
        g2.setColor(Color.WHITE);
        g2.fillOval(-10, -10, 20, 20);
        g2.setColor(Color.BLACK);
        g2.drawOval(-10, -10, 20, 20);
       
        // restauro los valores iniciales
        g2.setTransform(oldt);
View Full Code Here

                    0.0f, 1.0f},
                new Color[]{
                    startColor,
                    endColor});
        g2.setPaint(p);
        g2.fillOval((int) (x.floatValue() - radius), (int) (y.floatValue() - radius), (int) (radius * 2), (int) (radius * 2));
    }
   
    public void renderPDF(Item item, PDFTarget target, PreviewProperties properties) {
        //TODO Not implemented
    }
View Full Code Here

    final Graphics2D g2 = dst.createGraphics();
    g2.setBackground(new Color(0, 0, 0, 255));
    g2.setPaint(new GradientPaint(0, 0, new Color(255, 0, 0, 255), height,
        height, new Color(150, 0, 0, 255)));
    g2.fillOval(0, 0, height, height);
    g2.setPaint(new GradientPaint(0, 0, new Color(255, 250, 250, 255),
        height, height, new Color(200, 180, 180, 255)));
    g2.fillOval((int) Math.round(step), (int) Math.round(step), (int) Math
        .round(height - 2 * step), (int) Math.round(height - 2 * step));
    g2.setPaint(new GradientPaint(0, 0, new Color(255, 0, 0, 255), height,
View Full Code Here

    g2.setPaint(new GradientPaint(0, 0, new Color(255, 0, 0, 255), height,
        height, new Color(150, 0, 0, 255)));
    g2.fillOval(0, 0, height, height);
    g2.setPaint(new GradientPaint(0, 0, new Color(255, 250, 250, 255),
        height, height, new Color(200, 180, 180, 255)));
    g2.fillOval((int) Math.round(step), (int) Math.round(step), (int) Math
        .round(height - 2 * step), (int) Math.round(height - 2 * step));
    g2.setPaint(new GradientPaint(0, 0, new Color(255, 0, 0, 255), height,
        height, new Color(150, 0, 0, 255)));
    g2.fillOval((int) Math.round(2 * step), (int) Math.round(2 * step),
        (int) Math.round(height - 4 * step), (int) Math.round(height
View Full Code Here

        height, height, new Color(200, 180, 180, 255)));
    g2.fillOval((int) Math.round(step), (int) Math.round(step), (int) Math
        .round(height - 2 * step), (int) Math.round(height - 2 * step));
    g2.setPaint(new GradientPaint(0, 0, new Color(255, 0, 0, 255), height,
        height, new Color(150, 0, 0, 255)));
    g2.fillOval((int) Math.round(2 * step), (int) Math.round(2 * step),
        (int) Math.round(height - 4 * step), (int) Math.round(height
            - 4 * step));
    g2.setPaint(new GradientPaint(0, 0, new Color(255, 255, 255, 255),
        height, height, new Color(255, 255, 255, 255)));
    int heightMinus = (int) Math.round(2 * step);
 
View Full Code Here

    final Graphics2D g2 = dst.createGraphics();
    g2.setBackground(new Color(0, 0, 0, 255));
    g2.setPaint(new GradientPaint(0, 0, new Color(0, 255, 0, 255), height,
        height, new Color(0, 150, 0, 255)));
    g2.fillOval(0, 0, height, height);
    g2.setPaint(new GradientPaint(0, 0, new Color(255, 250, 250, 255),
        height, height, new Color(180, 200, 180, 255)));
    g2.fillOval((int) Math.round(step), (int) Math.round(step), (int) Math
        .round(height - 2 * step), (int) Math.round(height - 2 * step));
    g2.setPaint(new GradientPaint(0, 0, new Color(0, 255, 0, 255), height,
View Full Code Here

    g2.setPaint(new GradientPaint(0, 0, new Color(0, 255, 0, 255), height,
        height, new Color(0, 150, 0, 255)));
    g2.fillOval(0, 0, height, height);
    g2.setPaint(new GradientPaint(0, 0, new Color(255, 250, 250, 255),
        height, height, new Color(180, 200, 180, 255)));
    g2.fillOval((int) Math.round(step), (int) Math.round(step), (int) Math
        .round(height - 2 * step), (int) Math.round(height - 2 * step));
    g2.setPaint(new GradientPaint(0, 0, new Color(0, 255, 0, 255), height,
        height, new Color(0, 150, 0, 255)));
    g2.fillOval((int) Math.round(2 * step), (int) Math.round(2 * step),
        (int) Math.round(height - 4 * step), (int) Math.round(height
View Full Code Here

        height, height, new Color(180, 200, 180, 255)));
    g2.fillOval((int) Math.round(step), (int) Math.round(step), (int) Math
        .round(height - 2 * step), (int) Math.round(height - 2 * step));
    g2.setPaint(new GradientPaint(0, 0, new Color(0, 255, 0, 255), height,
        height, new Color(0, 150, 0, 255)));
    g2.fillOval((int) Math.round(2 * step), (int) Math.round(2 * step),
        (int) Math.round(height - 4 * step), (int) Math.round(height
            - 4 * step));
    g2.setPaint(new GradientPaint(0, 0, new Color(255, 255, 255, 255),
        height, height, new Color(255, 255, 255, 255)));
    int heightPlus = (int) Math.round(2 * step);
 
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.