import javafx.scene.paint.Color; import javafx.scene.canvas.GraphicsContext; public class Circle extends AShape { private double radius; public Circle(Color color, double xLoc, double yLoc) { super(color, xLoc, yLoc); } public void draw(GraphicsContext pen) { pen.setFill(getColor()); pen.fillRect(getX() - radius, getY() - radius, 2*radius, 2*radius); } }