/home/cdesrivi/NetBeansProjects/CS1/src/npw/Dots.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package npw;
 7 
 8 import java.awt.Color;
 9 import javax.swing.SwingUtilities;
10 import painter.SPainter;
11 import shapes.SCircle;
12 /**
13  *
14  * @author cdesrivi
15  */
16 public class Dots {
17     //TO CREATE SEPARATED SIZED DOTS SYMMETRIC TO Y-AXIS
18     private void paintTheImage() {
19         SPainter klee = new SPainter("dot" ,600,600);
20             SCircle dot1 = new SCircle(70);
21         klee.setColor(Color.BLUE);
22         klee.mlt(200);
23         klee.mbk(200);
24         klee.paint(dot1);
25         klee.moveToCenter();
26         
27             SCircle dot7 = new SCircle(70);
28         klee.setColor(Color.BLUE);
29         klee.mrt(200);
30         klee.mbk(200);
31         klee.paint(dot7);
32         
33             SCircle dot2 = new SCircle(90);
34         klee.setColor(Color.RED);
35         klee.moveToCenter();
36         klee.mlt(100);
37         klee.mfd(200);
38         klee.paint(dot2);
39         
40             SCircle dot6 = new SCircle(90);
41         klee.setColor(Color.RED);
42         klee.moveToCenter();
43         klee.mrt(100);
44         klee.mfd(200);
45         klee.paint(dot6);
46         
47             SCircle dot3 = new SCircle(50);
48         klee.setColor(Color.ORANGE);
49         klee.moveToCenter();
50         klee.mrt(245);
51         klee.mfd(50);
52         klee.paint(dot3);
53         
54            SCircle dot5 = new SCircle(50);
55         klee.setColor(Color.ORANGE);
56         klee.moveToCenter();
57         klee.mlt(245);
58         klee.mfd(50);
59         klee.paint(dot5);
60     
61             SCircle dot4 = new SCircle(25);
62         klee.setColor(Color.BLUE);
63         klee.moveToCenter();
64         klee.paint(dot4);
65   
66       
67         
68     // REQUIRED INFRASTRUCTURE
69      public Dots()   {
70         paintTheImage();
71     }
72 
73     public static void main(String[] args) {
74        SwingUtilities.invokeLater(new Runnable() {
75             public void run() {
76                 new Dots();
77           }
78         });
79     }
80 
81 }
82 
83                
84