public static void drawCircle ( Graphics g , int centerX , int centerY , int diameter ) { g . drawOval ( ( int ) ( centerX - diameter / 2 ) , ( int ) ( centerY - diameter / 2 ) , diameter , diameter ) ; }
Draws a circle with the specified diameter using the given point coordinates as center .