@@ -0,0 +1,679 @@
+package fig;%0A%0Aimport java.awt.Component;%0Aimport java.awt.Point;%0Aimport java.io.PrintWriter;%0A%0Apublic abstract class Figure extends Component%7B%0A%0A%09public Figure()%7B%0A%09%09centerPoint = new Point( 0, 0);%0A%09%09name = %22None%22;%0A%09%7D%0A%09%0A%09public Figure(String n,Point p)%7B%0A%09%09centerPoint = new Point(p);%0A%09%09name = new String(n);%0A%09%7D%0A%09%0A%09abstract public void draw(ScreenManager sm);%0A%09%0A%09abstract public void erase(ScreenManager sm);%0A%09%0A%09abstract public void center(ScreenManager sm);%0A%09%0A%09abstract public void showDetail(PrintWriter pw);%0A%09%0A%09public String getName()%7B%0A%09%09return name;%0A%09%7D%0A%09%0A%09protected Point centerPoint;%0A%09%0A%09protected String name;%0A%09%0A%09/**%0A%09 * %0A%09 */%0A%09private static final long serialVersionUID = 1L;%0A%7D%0A

Create figure.java