/** * Shape201 * * This is the base class for the shape subclasses that you will develop. */ import java.awt.*; import java.util.*; interface Shape201 { /** * Typical "getter" (accessor) method for color of the shape. */ public Color getColor(); /** * Typical "setter" (mutator) method for color of the shape. */ public void setColor(Color newColor); /** * Reads the data from the file, 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. The parameter * "in" should already be an open file, and the next lines ready * for reading should describe a particular shape. */ public void load(Scanner in); /** * Draws this shape on the given Canvas. The Canvas object that * is passed as a parameter should already be created. */ public void draw(Canvas drawing); /** * Returns the area (or a good estimate) of this shape. */ public double area(); }