@@ -0,0 +1,1411 @@
+package com.roiron.spaceproject.graphic;%0A%0Aimport java.awt.Color;%0Aimport java.awt.Graphics;%0Aimport java.awt.Graphics2D;%0A%0A/**%0A * @author Yohann Roiron%0A *%0A */%0Apublic class CercleShape extends GraphicObject %7B%0A%09%0A%09%0A%09//here we have the center of the circle, and its radius%0A%09private double radius;%0A%09/**%0A%09 * @param posX%0A%09 * @param posY%0A%09 * @param veloX%0A%09 * @param veloY%0A%09 * @param accX%0A%09 * @param accY%0A%09 * @param theta%0A%09 * @param vtheta%0A%09 * @param atheta%0A%09 * @param color%0A%09 * @param radius %09%0A%09 */%0A%09public CercleShape(double posX, double posY, double veloX, double veloY, double accX, double accY, double theta,%0A%09%09%09double vtheta, double atheta, Color color,double radius) %7B%0A%09%09super(posX, posY, veloX, veloY, accX, accY, theta, vtheta, atheta, color);%0A%09%09this.radius=radius;%0A%09%7D%0A%0A%09/**%0A%09 * @param posX%0A%09 * @param posY%0A%09 * @param theta%0A%09 * @param color%0A%09 * @param radius%0A%09 */%0A%09public CercleShape(double posX, double posY, double theta, Color color,double radius) %7B%0A%09%09super(posX, posY, theta, color);%0A%09%09this.radius=radius;%0A%09%7D%0A%0A%0A%09public void draw(Graphics g) %7B%0A%09%09%0A%09%09Graphics2D gg = (Graphics2D) g.create();%0A%09    gg.setColor(getColor());%0A%09    int upperLeftX=(int) (getPosX()-getRadius());%0A%09    int upperLeftY=(int)(getPosY()-getRadius());%0A%09    gg.fillOval(upperLeftX, upperLeftY, 2*(int)getRadius(), 2*(int)getRadius());%0A%09    gg.dispose();%0A%0A%09%7D%0A%0A%09/**%0A%09 * @return the radius%0A%09 */%0A%09public double getRadius() %7B%0A%09%09return radius;%0A%09%7D%0A%7D%0A

add the circle shape