Java Graphics Draw drawISPip(Graphics2D g2d, float width, float height)

Here you can find the source of drawISPip(Graphics2D g2d, float width, float height)

Description

draw IS Pip

License

Open Source License

Declaration

public static void drawISPip(Graphics2D g2d, float width, float height) 

Method Source Code

//package com.java2s;
/*/* w  ww  .  java  2 s  . c  o  m*/
 * MegaMekLab - Copyright (C) 2008
 *
 * 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.Font;

import java.awt.Graphics2D;

public class Main {
    public static void drawISPip(Graphics2D g2d, float width, float height) {
        Font font = new Font("Arial", Font.PLAIN, 6);
        g2d.setFont(font);
        g2d.drawString("O", width, height);
    }
}

Related

  1. drawGroove(Graphics g, int x, int y, int w, int h, Color shadow, Color highlight)
  2. drawGroove(Graphics g, int x, int y, int width, int height, Color shadow, Color highlight)
  3. drawHandles(final Graphics g, final int[] x, final int[] y)
  4. drawIcon(Graphics g, String icon, int x, int y)
  5. drawInnerButtonDecoration(Graphics g, int x, int y, int w, int h, Color baseColor)
  6. drawLightBeamVertical(Graphics g, Color c, int midx, int y1, int y2)
  7. drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
  8. drawMarker(Graphics2D g, int markerWidth, int markerHeight, Point location)
  9. drawMask(Graphics2D g2, Shape mask)