Package java.awt

Examples of java.awt.Graphics2D.fillOval()


            g.setColor(Color.green);
        } else {
            g.setColor(Color.red);
        }
       
        g.fillOval(img.getWidth() - 25, 50, 20, 20);
        g.setColor(Color.black);
        g.drawOval(img.getWidth() - 25, 50, 20, 20);
       
        return img;
    }
View Full Code Here


        g.fillRect(width / 2 - 3, width / 2 - 3, width / 2 + 6, 3 * width / 2 + 6);
        g.setColor(Color.black);
        g.drawRect(width / 2 - 3, width / 2 - 3, width / 2 + 6, 3 * width / 2 + 6);

        g.setColor(top);
        g.fillOval(width / 2, 1 * width / 2, radius, radius);
        g.setColor(Color.black);
        g.drawOval(width / 2, 1 * width / 2, radius, radius);

        g.setColor(middle);
        g.fillOval(width / 2, 2 * width / 2, radius, radius);
View Full Code Here

        g.fillOval(width / 2, 1 * width / 2, radius, radius);
        g.setColor(Color.black);
        g.drawOval(width / 2, 1 * width / 2, radius, radius);

        g.setColor(middle);
        g.fillOval(width / 2, 2 * width / 2, radius, radius);
        g.setColor(Color.black);
        g.drawOval(width / 2, 2 * width / 2, radius, radius);

        g.setColor(bottom);
        g.fillOval(width / 2, 3 * width / 2, radius, radius);
View Full Code Here

        g.fillOval(width / 2, 2 * width / 2, radius, radius);
        g.setColor(Color.black);
        g.drawOval(width / 2, 2 * width / 2, radius, radius);

        g.setColor(bottom);
        g.fillOval(width / 2, 3 * width / 2, radius, radius);
        g.setColor(Color.black);
        g.drawOval(width / 2, 3 * width / 2, radius, radius);
       
        return img;
    }
View Full Code Here

    g2.setStroke(new BasicStroke(1f));
   
   

   
    g2.fillOval(5, 5, 10, 10);
    g2.setColor(Color.ORANGE);
   
    g2.fillOval(7, 7, 6, 6);
    g2.setColor(Color.YELLOW);
   
View Full Code Here

   
    g2.fillOval(5, 5, 10, 10);
    g2.setColor(Color.ORANGE);
   
    g2.fillOval(7, 7, 6, 6);
    g2.setColor(Color.YELLOW);
   
    g2.fillOval(9, 9, 1, 1);
   
   
View Full Code Here

    g2.setColor(Color.ORANGE);
   
    g2.fillOval(7, 7, 6, 6);
    g2.setColor(Color.YELLOW);
   
    g2.fillOval(9, 9, 1, 1);
   
   
   
   
View Full Code Here

                            lValor = (long) ((((lValorY - tiColYMin.getTime()) * 100) / l100PorCienY) * incrementoY);
                            yActual = (int) (ejeY - lValor);
                        }

                        g2.drawOval(xActual - 4, yActual - 4, 8, 8);
                        g2.fillOval(xActual - 2, yActual - 2, 4, 4);

                        if(!bPrimeraVez)
                            g2.drawLine(xAnterior, yAnterior[k], xActual, yActual);
                        else
                            g2.drawLine(ejeX, ejeY, xActual, yActual);
View Full Code Here

        if (this.mycell.getGame().getProg().getMain_controller().getPath().contains(this.mycell)) {
            g2d.setColor(getPath_bg_color());
        } else {
            g2d.setColor(this.getBg_color());
        }
        g2d.fillOval(getTopleftx(), getToplefty(), getDiagonal_size(), getDiagonal_size());

        //cella kerületének és a rajta lévő "X" kirajzolása
        g2d.setColor(getFg_color());
        g2d.setStroke(korvonal_stroke);
        g2d.drawOval(getTopleftx(), getToplefty(), getDiagonal_size(), getDiagonal_size());
View Full Code Here

        
        if (modus!=MODE_FLAT)
        {
            int d=6;
            g2.setColor(Color.BLACK);
            g2.fillOval(p1.x-d,p1.y-d,d*2,d*2);
            g2.setColor(Color.WHITE);
            g2.drawOval(p1.x-d,p1.y-d,d*2-1,d*2-1);

            g2.setColor(Color.BLACK);
            g2.fillOval(p2.x-d,p2.y-d,d*2,d*2);
 
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.