Package java.awt

Examples of java.awt.Graphics.fillOval()


            tempGraphics.setColor(Color.black);
            tempGraphics.fillOval(x1-3, y1-3, 6,6);
           
            // Points
            tempGraphics.setColor(Color.red);
            tempGraphics.fillOval(x1-2, y1-2, 6,6);
        }       
    }
   
    /**
     * Called when the user releases the mouse butotn.
View Full Code Here


                    tempGraphics.drawLine(x1, y2,x2,y2);
                    tempGraphics.drawLine(x1, y1,x1,y2);
                   
                    // Point shadows
                    tempGraphics.setColor(Color.black);
                    tempGraphics.fillOval(x1-3, y1-3, 4,4);
                    tempGraphics.fillOval(x2-3, y1-3, 4,4);
                    tempGraphics.fillOval(x2-3, y2-3, 4,4);
                    tempGraphics.fillOval(x1-3, y2-3, 4,4);
                   
                    // Points
View Full Code Here

                    tempGraphics.drawLine(x1, y1,x1,y2);
                   
                    // Point shadows
                    tempGraphics.setColor(Color.black);
                    tempGraphics.fillOval(x1-3, y1-3, 4,4);
                    tempGraphics.fillOval(x2-3, y1-3, 4,4);
                    tempGraphics.fillOval(x2-3, y2-3, 4,4);
                    tempGraphics.fillOval(x1-3, y2-3, 4,4);
                   
                    // Points
                    tempGraphics.setColor(Color.red);
View Full Code Here

                   
                    // Point shadows
                    tempGraphics.setColor(Color.black);
                    tempGraphics.fillOval(x1-3, y1-3, 4,4);
                    tempGraphics.fillOval(x2-3, y1-3, 4,4);
                    tempGraphics.fillOval(x2-3, y2-3, 4,4);
                    tempGraphics.fillOval(x1-3, y2-3, 4,4);
                   
                    // Points
                    tempGraphics.setColor(Color.red);
                    tempGraphics.fillOval(x1-2, y1-2, 4,4);
View Full Code Here

                    // Point shadows
                    tempGraphics.setColor(Color.black);
                    tempGraphics.fillOval(x1-3, y1-3, 4,4);
                    tempGraphics.fillOval(x2-3, y1-3, 4,4);
                    tempGraphics.fillOval(x2-3, y2-3, 4,4);
                    tempGraphics.fillOval(x1-3, y2-3, 4,4);
                   
                    // Points
                    tempGraphics.setColor(Color.red);
                    tempGraphics.fillOval(x1-2, y1-2, 4,4);
                    tempGraphics.fillOval(x2-2, y1-2, 4,4);
View Full Code Here

                    tempGraphics.fillOval(x2-3, y2-3, 4,4);
                    tempGraphics.fillOval(x1-3, y2-3, 4,4);
                   
                    // Points
                    tempGraphics.setColor(Color.red);
                    tempGraphics.fillOval(x1-2, y1-2, 4,4);
                    tempGraphics.fillOval(x2-2, y1-2, 4,4);
                    tempGraphics.fillOval(x2-2, y2-2, 4,4);
                    tempGraphics.fillOval(x1-2, y2-2, 4,4);
                }
            }
View Full Code Here

                    tempGraphics.fillOval(x1-3, y2-3, 4,4);
                   
                    // Points
                    tempGraphics.setColor(Color.red);
                    tempGraphics.fillOval(x1-2, y1-2, 4,4);
                    tempGraphics.fillOval(x2-2, y1-2, 4,4);
                    tempGraphics.fillOval(x2-2, y2-2, 4,4);
                    tempGraphics.fillOval(x1-2, y2-2, 4,4);
                }
            }
           
View Full Code Here

                   
                    // Points
                    tempGraphics.setColor(Color.red);
                    tempGraphics.fillOval(x1-2, y1-2, 4,4);
                    tempGraphics.fillOval(x2-2, y1-2, 4,4);
                    tempGraphics.fillOval(x2-2, y2-2, 4,4);
                    tempGraphics.fillOval(x1-2, y2-2, 4,4);
                }
            }
           
            // draw the buffer image on the display
View Full Code Here

                    // Points
                    tempGraphics.setColor(Color.red);
                    tempGraphics.fillOval(x1-2, y1-2, 4,4);
                    tempGraphics.fillOval(x2-2, y1-2, 4,4);
                    tempGraphics.fillOval(x2-2, y2-2, 4,4);
                    tempGraphics.fillOval(x1-2, y2-2, 4,4);
                }
            }
           
            // draw the buffer image on the display
            getGISDisplay().getGraphics().drawImage(getGISDisplay().getBufferImage(), 0, 0, getGISDisplay());
View Full Code Here

        int x = c.toScreenX(inPoint.getX());
        int y = c.toScreenY(inPoint.getY());
        if ((x > 0) && (y > 0) && (x < myGISDisplay.getWidth()) && (y < myGISDisplay.getHeight())){
            Graphics g = myGISDisplay.getBufferImage().getGraphics();
            g.setColor(java.awt.Color.cyan);
            g.fillOval(x-5, y-5, 10,10);
            g.setColor(java.awt.Color.black);
            g.drawOval(x-5, y-5, 10,10);

            // Draw the buffer on the display
            myGISDisplay.getGraphics().drawImage(myGISDisplay.getBufferImage(), 0, 0, myGISDisplay);
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.