Java Graphics Draw drawDropshipISPip(Graphics2D g2d, int width, int height, int circleSize, int fillCircleSize)

Here you can find the source of drawDropshipISPip(Graphics2D g2d, int width, int height, int circleSize, int fillCircleSize)

Description

draw Dropship IS Pip

License

Open Source License

Declaration

public static void drawDropshipISPip(Graphics2D g2d, int width, int height, int circleSize,
            int fillCircleSize) 

Method Source Code


//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);
    }
}

Related

  1. drawDisc(Graphics g)
  2. drawDot(Graphics g, int x, int y)
  3. drawDots(Graphics g, int x0, int y0, int x1, int y1, int interval)
  4. drawDottedDashLine(Graphics2D g, int x1, int y1, int x2, int y2)
  5. drawDottedRect(Graphics g, int x, int y, int w, int h)
  6. drawEdge(Graphics g, int w, int h)
  7. drawEtchedRect(Graphics g, int x, int y, int width, int height, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
  8. drawFilledBox(Graphics2D g, int x, int y, int width, int height)
  9. drawFilledOctagon(Graphics2D g, int x, int y, float size)