Here you can find the source of drawDropshipISPip(Graphics2D g2d, int width, int height, int circleSize, int fillCircleSize)
public static void drawDropshipISPip(Graphics2D g2d, int width, int height, int circleSize, int fillCircleSize)
//package com.java2s; /*/*w ww .jav a2s . co m*/ * MegaMekLab - Copyright (C) 2010 * * Original author - jtighe (torren@users.sourceforge.net) * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. */ import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; public class Main { public static void drawDropshipISPip(Graphics2D g2d, int width, int height, int circleSize, int fillCircleSize) { Dimension circle = new Dimension(circleSize, circleSize); Dimension fillCircle = new Dimension(fillCircleSize, fillCircleSize); g2d.setColor(Color.black); g2d.fillOval(width, height, circle.width, circle.height); g2d.setColor(Color.white); g2d.fillOval(width + 1, height + 1, fillCircle.width, fillCircle.height); } }