import javax.swing.*; import java.awt.*; import java.util.*; public class SmileyClass extends JApplet { 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 Y_NOSE = 135; 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 noseDiameter = 10; private int xNose = 195; private int mouthStartAngle = 180; /* input: boolean smile smile is true, Smiley smiles smile is false, Smiley frowns */ private void setMouth(boolean smile) { } /* input: Graphics and a String set color to the input String set color to white if incorrect input */ private void setEyeColor(Graphics canvas, String color) { } /* input: an int resize nose to the magnification of size as long as the size is in the range [1,4] also, centers the nose by changing xNose */ private void setNoseSize(int s) { } /* input: graphics and int calls the private method, setNoseSize draws the nose */ public void drawNose(Graphics canvas, int size) { } /* input: graphics and boolean calls the private method, setMouth draws mouth */ public void drawMouth(Graphics canvas, boolean smile) { } /* input: graphics and String calls the private method, setEyeColor draws the eyes */ public void drawEyes(Graphics canvas, String color) { } /* input: graphics draws the face */ public 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); } }