/* Copyright 2001 Michael R. Wick */ package Shapes; import java.awt.Point; import java.awt.Color; import java.awt.Graphics; public class Circle extends Shape { int radius; public Circle(Point p, int r, Color c) { super(p,c); radius = r; } /* A C++-like copy constructor. */ public Circle( Circle orig ){ super(orig); radius = orig.radius; } public Shape copy(){ return (new Circle( this ) ); } public void drawBorder(Graphics g){ Point upperLeft = translate(theCenter,-radius, -radius); g.fillOval(upperLeft.x,upperLeft.y,radius*2,radius*2); } protected void rotateBorderAbout(Point p, int degrees){} protected void flipBorderVerticalAbout(Point p){} protected void flipBorderHorizontalAbout(Point p){} protected void translateBorder(int dx, int dy){} }