import java.awt.*;

public class Disc extends Selectable {

  Disc(double x, double y, double r)
  {
    position = new Position(x,y);
    this.r = r;
  }

  Disc(Position pos, double r)
  {
    position = pos;
    this.r = r;
  }
  
  public final void paint(Graphics g) 
  {
     int x, y;
     int diameter;

     diameter = DiscMath.round(2*r);
     x = DiscMath.round(position.x-r);
     y = DiscMath.round(position.y-r);
     g.setColor(Color.black);
     g.drawOval(x, y, diameter, diameter);
  }

  public Position position;
  public double r;

}

