The list of methods to do Draw Circle are organized into topic(s).
void
drawCircle(Graphics g, int x, int y, int diameter) Draws a circle using the given graphics context, centered at
(x,y), having the given diameter.
((Graphics2D) g).addRenderingHints(hints);
g.drawOval(x - diameter / 2, y - diameter / 2, diameter, diameter);
void
drawCircle5(Graphics g, int x, int y) draw Circle
if (!(g instanceof Graphics2D)) {
g.drawOval(x - 2, y - 2, 4, 4);
return;
g.drawLine(x - 2, y - 1, x - 2, y + 1);
g.drawLine(x + 2, y - 1, x + 2, y + 1);
g.drawLine(x - 1, y - 2, x + 1, y - 2);
g.drawLine(x - 1, y + 2, x + 1, y + 2);
...
void
drawStatesInCircle(Graphics2D g2d, int x, int y, int width, int height, Color... stateColors) draw States In Circle
int states = stateColors.length;
if (states > 0) {
int startAngle = 0, arcAngle = 360 / states;
for (Color stateColor : stateColors) {
g2d.setColor(stateColor);
g2d.fillArc(x, y, width, height, startAngle, arcAngle);
startAngle = startAngle + arcAngle;
g2d.setColor(Color.BLACK);
g2d.drawOval(x, y, width, height);