/home/dmaslows/NetBeansProjects/CS1/src/npw/Dots.java
 1 /*
 2  * Program to paint a blue dot in the context of the Nonrepresentational
 3  * Painting World, NPW.
 4  */
 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  *
15  * @author blue
16  */
17 public class Dots {
18 // THE SOLUTION TO THE BLUE DOT PROBLEM
19     
20 private void paintTheImage() {
21     SPainter wumbo = new SPainter("Dots",600,600);
22     SCircle dot = new SCircle(25);
23     wumbo.setColor(Color.BLUE);
24     wumbo.mlt(150);
25     wumbo.paint(dot);
26     wumbo.mrt(300);
27     wumbo.paint(dot);
28     wumbo.mfd(100);
29     wumbo.setColor(Color.MAGENTA);
30     SCircle beep = new SCircle(35);
31     wumbo.paint(beep);
32     wumbo.mlt(300);
33     wumbo.paint(beep);
34     SCircle boop = new SCircle(45);
35     wumbo.setColor(Color.CYAN);
36     wumbo.mbk(300);
37     wumbo.paint(boop);
38     wumbo.mrt(300);
39     wumbo.paint(boop);
40     wumbo.mlt(150);
41     wumbo.paint(boop);
42    
43 }
44 
45 // REQUIRED INFRASTRUCTURE
46 
47 public Dots() {
48     paintTheImage();
49 }
50 
51     public static void main(String[] args) {
52         SwingUtilities.invokeLater(new Runnable() {
53             public void run() {
54                 new Dots();
55             }
56         });
57     }
58     
59 }
60