Examples of drawArc()


Examples of java.awt.Graphics.drawArc()

      g.setColor(val.getColor());
    }
    g.drawLine(x0 + diam, 0, 0, 0);
    g.setColor(oldColor);
    if (height <= diam) {
      g.drawArc(x0, y0, diam, diam, -90, 180);
    } else {
      int x1 = x0 + diam;
      int yy0 = -(height - diam) / 2;
      int yy1 = (height - diam) / 2;
      g.drawArc(x0, y0, diam, diam, 0, 90);
View Full Code Here

Examples of java.awt.Graphics.drawArc()

      g.drawArc(x0, y0, diam, diam, -90, 180);
    } else {
      int x1 = x0 + diam;
      int yy0 = -(height - diam) / 2;
      int yy1 = (height - diam) / 2;
      g.drawArc(x0, y0, diam, diam, 0, 90);
      g.drawLine(x1, yy0, x1, yy1);
      g.drawArc(x0, y0 + height - diam, diam, diam, -90, 90);
    }
    g.drawLine(xMid, y0, xMid, y0 + height);
    if (drawBubble) {
View Full Code Here

Examples of java.awt.Graphics.drawArc()

      int x1 = x0 + diam;
      int yy0 = -(height - diam) / 2;
      int yy1 = (height - diam) / 2;
      g.drawArc(x0, y0, diam, diam, 0, 90);
      g.drawLine(x1, yy0, x1, yy1);
      g.drawArc(x0, y0 + height - diam, diam, diam, -90, 90);
    }
    g.drawLine(xMid, y0, xMid, y0 + height);
    if (drawBubble) {
      g.fillOval(x0 + diam - 4, -4, 8, 8);
      xMid += 4;
View Full Code Here

Examples of java.awt.Graphics.drawArc()

    }
    Graphics g = overlayedShading.getGraphics();
    for (int i = 0; i < shades.length; i++) {
      g.setColor(lights[i]);
      g.drawPolyline(new int[] { i, i, qLength - i }, new int[] { height - i - yOffs, i + yOffs, i + yOffs }, 3);
      g.drawArc(width - height + i, i, height - 2 * i, height - 2 * i, 45 + 4 * i, 180 - 8 * i);
      g.setColor(shades[i]);
      g.drawPolyline(new int[] { i, qLength - i, qLength - i }, new int[] { height - i - yOffs, height - i - yOffs, i + yOffs }, 2);
      g.drawArc(width - height + i, i, height - 2 * i, height - 2 * i, 225 + 4 * i, 180 - 8 * i);
    }
    overlayedShading = overlayedShading.getScaledInstance(getBounds().width, getBounds().height, Image.SCALE_SMOOTH);
View Full Code Here

Examples of java.awt.Graphics.drawArc()

      g.setColor(lights[i]);
      g.drawPolyline(new int[] { i, i, qLength - i }, new int[] { height - i - yOffs, i + yOffs, i + yOffs }, 3);
      g.drawArc(width - height + i, i, height - 2 * i, height - 2 * i, 45 + 4 * i, 180 - 8 * i);
      g.setColor(shades[i]);
      g.drawPolyline(new int[] { i, qLength - i, qLength - i }, new int[] { height - i - yOffs, height - i - yOffs, i + yOffs }, 2);
      g.drawArc(width - height + i, i, height - 2 * i, height - 2 * i, 225 + 4 * i, 180 - 8 * i);
    }
    overlayedShading = overlayedShading.getScaledInstance(getBounds().width, getBounds().height, Image.SCALE_SMOOTH);
  }

  private void createCPU(Graphics g) {
View Full Code Here

Examples of java.awt.Graphics.drawArc()

            g.setColor(val.getColor());
        }
        g.drawLine(x0 + diam, 0, 0, 0);
        g.setColor(oldColor);
        if (height <= diam) {
            g.drawArc(x0, y0, diam, diam, -90, 180);
        } else {
            int x1 = x0 + diam;
            int yy0 = -(height - diam) / 2;
            int yy1 = (height - diam) / 2;
            g.drawArc(x0, y0, diam, diam, 0, 90);
View Full Code Here

Examples of java.awt.Graphics.drawArc()

            g.drawArc(x0, y0, diam, diam, -90, 180);
        } else {
            int x1 = x0 + diam;
            int yy0 = -(height - diam) / 2;
            int yy1 = (height - diam) / 2;
            g.drawArc(x0, y0, diam, diam, 0, 90);
            g.drawLine(x1, yy0, x1, yy1);
            g.drawArc(x0, y0 + height - diam, diam, diam, -90, 90);
        }
        g.drawLine(xMid, y0, xMid, y0 + height);
        if (drawBubble) {
View Full Code Here

Examples of java.awt.Graphics.drawArc()

            int x1 = x0 + diam;
            int yy0 = -(height - diam) / 2;
            int yy1 = (height - diam) / 2;
            g.drawArc(x0, y0, diam, diam, 0, 90);
            g.drawLine(x1, yy0, x1, yy1);
            g.drawArc(x0, y0 + height - diam, diam, diam, -90, 90);
        }
        g.drawLine(xMid, y0, xMid, y0 + height);
        if (drawBubble) {
            g.fillOval(x0 + diam - 4, -4, 8, 8);
            xMid += 4;
View Full Code Here

Examples of java.awt.Graphics.drawArc()

            bg.drawLine(x1, cy0, x1, cy1);

            int arcSize = 2 * (SIZE - i);
               
            // draw top-left & right corners
            bg.drawArc(x, y, arcSize, arcSize, 180, -90);
            bg.drawArc(x2, y, arcSize, arcSize, 0, 90);
               
            // draw bottom-left & right corners
            bg.drawArc(x, y2, arcSize, arcSize, 180, 90);
            bg.drawArc(x2, y2, arcSize, arcSize, 0, -90);
View Full Code Here

Examples of java.awt.Graphics.drawArc()

            int arcSize = 2 * (SIZE - i);
               
            // draw top-left & right corners
            bg.drawArc(x, y, arcSize, arcSize, 180, -90);
            bg.drawArc(x2, y, arcSize, arcSize, 0, 90);
               
            // draw bottom-left & right corners
            bg.drawArc(x, y2, arcSize, arcSize, 180, 90);
            bg.drawArc(x2, y2, arcSize, arcSize, 0, -90);
               
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.