/* DrawableCircle.java        Authors: Koffman & Wolz
 * Represents a drawable circle.
 * Extends Circle and implements Drawable.
 */
import java.awt.*;

public class DrawableCircle extends Circle implements Drawable {
	// Data fields
  //   none

  // Methods
  // Constructors
	public DrawableCircle(int rad, Point p,
                        Color bor, Color inter) {
		super(rad);
		pos = p;
		borderColor = bor;
		interiorColor = inter;
	}

	public DrawableCircle() {}

	// Operations
	public void drawMe(Graphics g) {
    g.setColor(interiorColor);
		g.fillOval(pos.x - radius, pos.y - radius,
               2 * radius, 2 * radius);
    g.setColor(borderColor);
		g.drawOval(pos.x - radius, pos.y - radius,
               2 * radius, 2 * radius);
	}

	public String toString() {
		return "Drawable " + super.toString() +
           "\nx coordinate is " + pos.x +
           ", y coordinate is " + pos.y +
           "\nborder color is " + borderColor +
           "\ninterior color is " + interiorColor;
	}
}
