/** * APShape * * This is the base class for the shape subclasses. */ import java.awt.*; import java.util.*; public interface APShape { Color getColor(); void setColor(Color newColor); /** * Reads the subclass-specific data from the specified * input source, and stores the data in appropriate * fields. The load method of a Circle subclass, for * example, would read and store the x-coordinate of the * center, the y-coordinate of the center, and the radius. */ void load(Scanner in); /** * Draws this shape on the given Canvas. */ void draw(Canvas canvas); }