UNB/ CS/ David Bremner/ teaching/ java/ Smiley.java
import java.awt.Graphics;
public class Smiley{
    public final static int DEFAULT_WIDTH=10;
    public final static int DEFAULT_HEIGHT=10;

    public final static int STYLE_GUMP=0;
    
    private int smileyStyle=STYLE_GUMP;

    private int width=DEFAULT_WIDTH;
    private int height=DEFAULT_HEIGHT;

    public  Smiley(){
    }

    public Smiley(int theWidth,int theHeight){
        height=theHeight;
        width=theWidth;
    }
    public void draw(Graphics g, int x, int y){
        g.drawOval(x,y,width,height);
        g.fillOval(x+width/6,y+height/4,width/4,height/4);
        g.fillOval(x+4*width/6,y+height/4,width/4,height/4);
        g.drawArc(x+width/6,y+height/2,2*width/3,height/3,180,180);
    }

}