/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package turtle.gui.view;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Point2D;
import turtle.entity.field.Ball;

/**
 * Représentation graphique d'un ballon
 *
 * @author Julien Brochet <julien.brochet@etu.univ-lyon1.fr>
 * @since 1.0
 */
public class BallView implements ViewInterface
{
    public static void paint(Ball ball, Graphics2D g)
    {
        Point2D position = ball.getPosition();

        // Grey
        g.setColor(new Color(219, 219, 219));

        g.fillOval((int) position.getX(), (int) position.getY(), 10, 10);
    }
}

@@ -166,24 +166,79 @@
 Graphics2D;%0A
+import java.awt.Shape;%0Aimport java.awt.geom.Ellipse2D;%0A
 import java.
@@ -464,16 +464,67 @@
 rface%0A%7B%0A
+    protected static float mBallDiameter = 15.0f;%0A%0A
     publ
@@ -621,16 +621,184 @@
 ition();
+%0A        Shape circle = new Ellipse2D.Float((float) (position.getX() - mBallDiameter / 2), (float) (position.getY() - mBallDiameter / 2), mBallDiameter, mBallDiameter);
 %0A%0A      
@@ -853,17 +853,16 @@
  219));%0A
-%0A
         
@@ -871,65 +871,15 @@
 fill
-Oval((int) position.getX(), (int) position.getY(), 10, 10
+(circle
 );%0A 

use now Ellipse2D instead of fillOval