Dots.java
/* 
 * 
 */
package npw;

import java.awt.Color;
import javax.swing.SwingUtilities;
import painter.SPainter;
import shapes.SCircle;

public class Dots {

    //Paint night circles with four different sizes, four different colors and symmetric about the Y-axis
    private void paintTheImage() {
        SPainter Shabi = new SPainter("Dots", 800, 800);
        SCircle dot = new SCircle(20);
        PaintGrayCircle(Shabi, dot);
        SCircle dot1 = new SCircle(40);
        PaintYellowCircle(Shabi, dot1);
        SCircle dot2 = new SCircle(50);
        PaintBlueCircle(Shabi, dot2);
        SCircle dot3 = new SCircle(70);
        PaintRedCircle(Shabi, dot3);
        SCircle dot4 = new SCircle(100);
        PaintBlackCircle(Shabi, dot4);

    }

    private static void PaintGrayCircle(SPainter Shabi, SCircle dot) {
        Shabi.setColor(Color.GRAY);
        Shabi.mlt(300);
        Shabi.mfd(300);
        Shabi.paint(dot);
        Shabi.moveToCenter();
        Shabi.mrt(300);
        Shabi.mfd(300);
        Shabi.paint(dot);
        Shabi.moveToCenter();
    }

    private static void PaintYellowCircle(SPainter Shabi, SCircle dot1) {
        Shabi.setColor(Color.YELLOW);
        Shabi.mlt(100);
        Shabi.mfd(200);
        Shabi.paint(dot1);
        Shabi.moveToCenter();
        Shabi.mrt(100);
        Shabi.mfd(200);
        Shabi.paint(dot1);
        Shabi.moveToCenter();
    }

    private static void PaintBlueCircle(SPainter Shabi, SCircle dot2){
        Shabi.setColor(Color.BLUE);
        Shabi.mlt(100);
        Shabi.mbk(200);
        Shabi.paint(dot2);
        Shabi.moveToCenter();
        Shabi.mrt(100);
        Shabi.mbk(200);
        Shabi.paint(dot2);
        Shabi.moveToCenter();
    }

    private static void PaintRedCircle(SPainter Shabi, SCircle dot3){
        Shabi.setColor(Color.RED);
        Shabi.mlt(300);
        Shabi.mbk(50);
        Shabi.paint(dot3);
        Shabi.moveToCenter();
        Shabi.mrt(300);
        Shabi.mbk(50);
        Shabi.paint(dot3);
        Shabi.moveToCenter();
    }

    private static void PaintBlackCircle(SPainter Shabi, SCircle dot4){
        Shabi.setColor(Color.BLACK);
        Shabi.mbk(50);
        Shabi.paint(dot4);
        Shabi.moveToCenter();
    }

    public Dots() {
        paintTheImage();
    }

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                new Dots();


            }

        });
    }
}