import java.awt.*; public class SmileyClass { private static final int FACE_DIAMETER = 200; private static final int X_FACE = 100; private static final int Y_FACE = 50; private static final int EYE_WIDTH = 10; private static final int EYE_HEIGHT = 20; private static final int X_RIGHT_EYE = 155; private static final int Y_RIGHT_EYE = 95; private static final int X_LEFT_EYE = 230; private static final int Y_LEFT_EYE = Y_RIGHT_EYE; private static final int X_NOSE = 200; private static final int Y_NOSE = 150; private static final int MOUTH_WIDTH = 100; private static final int MOUTH_HEIGHT = 50; private static final int X_MOUTH = 150; private static final int Y_MOUTH = 175; private static final int MOUTH_DEGREES_SHOWN = 180; private int mouthStartAngle = 180; // the start angle of the mouth private int noseDiameter = 15; // the size of the nose private String eyeColor = ""; // the color of the eyes /* * input: boolean * set the start angle of the mouth according to the input boolean * */ public void setMouth(boolean bSmile) { } /* * input: a String * set the color to the input String * */ public void setEyeColor(String color) { } /* * input: an int * set the size of the nose to the magnification of size * */ public void setNoseSize(int sizeMagnifier) { } /* * input: graphics * draw the eyes * */ private void drawEyes(Graphics canvas) { } /* * input: graphics * draw the nose * */ private void drawNose(Graphics canvas) { } /* * input: graphics * draw the mouth * */ private void drawMouth(Graphics canvas) { } /* * input: graphics * draws the face * */ private void drawFace(Graphics canvas) { canvas.setColor(Color.YELLOW); canvas.fillOval(X_FACE, Y_FACE, FACE_DIAMETER, FACE_DIAMETER); canvas.setColor(Color.BLACK); canvas.drawOval(X_FACE, Y_FACE, FACE_DIAMETER, FACE_DIAMETER); } /* * input: graphics * call private methods, drawFace, drawEyes, * drawNose and drawMouth * draw the smiley face */ public void draw(Graphics canvas) { drawFace(canvas); drawEyes(canvas); drawNose(canvas); drawMouth(canvas); } }