Here you can find the source of drawCircle(Graphics2D graphics, double x, double y, double radius)
public static void drawCircle(Graphics2D graphics, double x, double y, double radius)
//package com.java2s; import java.awt.Graphics2D; import java.awt.Shape; import java.awt.geom.Ellipse2D; public class Main { public static void drawCircle(Graphics2D graphics, double x, double y, double radius) { Shape circle = new Ellipse2D.Double(x - radius, y - radius, radius * 2.0, radius * 2.0); graphics.draw(circle);/*from ww w. ja va2 s .c om*/ } }