Examples of fillArc()


Examples of java.awt.Graphics.fillArc()

    Graphics g = bi.getGraphics();
    int qLength = bounds.width * 3 / 5, height = bounds.height, width = bounds.width;
    for (int i = 0, monoChannel = 0; i < 5; i++, monoChannel = (int) ((1 - Math.exp(-i)) * 50)) {
      g.setColor(new Color(230 - monoChannel, 230 - monoChannel, 230 - monoChannel, 255));
      g.drawPolyline(new int[] { i, i, qLength - i }, new int[] { height - i, i, i }, 3);
      g.fillArc(width - height + i, i, height - 2 * i, height - 2 * i, 45, 180);
      g.setColor(new Color(130 + monoChannel, 130 + monoChannel, 130 + monoChannel, 255));
      g.drawPolyline(new int[] { i, qLength - i, qLength - i }, new int[] { height - i, height - i, i }, 3);
      g.fillArc(width - height + i, i, height - 2 * i, height - 2 * i, 225, 180);
    }
    g.fillRect(5, 5, qLength - 9, height - 9);
View Full Code Here

Examples of java.awt.Graphics.fillArc()

      g.setColor(new Color(230 - monoChannel, 230 - monoChannel, 230 - monoChannel, 255));
      g.drawPolyline(new int[] { i, i, qLength - i }, new int[] { height - i, i, i }, 3);
      g.fillArc(width - height + i, i, height - 2 * i, height - 2 * i, 45, 180);
      g.setColor(new Color(130 + monoChannel, 130 + monoChannel, 130 + monoChannel, 255));
      g.drawPolyline(new int[] { i, qLength - i, qLength - i }, new int[] { height - i, height - i, i }, 3);
      g.fillArc(width - height + i, i, height - 2 * i, height - 2 * i, 225, 180);
    }
    g.fillRect(5, 5, qLength - 9, height - 9);
    g.fillOval(width - height + 5, 5, height - 10, height - 10);
    return bi;
  }
View Full Code Here

Examples of java.awt.Graphics.fillArc()

    BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);
    Graphics g = bi.getGraphics();
    for (int i = 0, monoChannel = 0; i < 10; i++, monoChannel = (int) ((1 - Math.exp(-i)) * 50)) {
      g.setColor(new Color(230 - monoChannel, 230 - monoChannel, 230 - monoChannel));
      g.drawPolyline(new int[] { i, i, qLength - i }, new int[] { height - i, i, i }, 3);
      g.fillArc(width - height + i, i, height - 2 * i, height - 2 * i, 45, 180);
      g.setColor(new Color(130 + monoChannel, 130 + monoChannel, 130 + monoChannel));
      g.drawPolyline(new int[] { i, qLength - i, qLength - i }, new int[] { height - i, height - i, i }, 3);
      g.fillArc(width - height + i, i, height - 2 * i, height - 2 * i, 225, 180);
    }
    g.fillRect(5, 5, qLength - 9, height - 9);
View Full Code Here

Examples of java.awt.Graphics.fillArc()

      g.setColor(new Color(230 - monoChannel, 230 - monoChannel, 230 - monoChannel));
      g.drawPolyline(new int[] { i, i, qLength - i }, new int[] { height - i, i, i }, 3);
      g.fillArc(width - height + i, i, height - 2 * i, height - 2 * i, 45, 180);
      g.setColor(new Color(130 + monoChannel, 130 + monoChannel, 130 + monoChannel));
      g.drawPolyline(new int[] { i, qLength - i, qLength - i }, new int[] { height - i, height - i, i }, 3);
      g.fillArc(width - height + i, i, height - 2 * i, height - 2 * i, 225, 180);
    }
    g.fillRect(5, 5, qLength - 9, height - 9);
    g.fillOval(width - height + 5, 5, height - 10, height - 10);
    return bi.getScaledInstance(bounds.width, bounds.height, Image.SCALE_SMOOTH);
  }
View Full Code Here

Examples of java.awt.Graphics.fillArc()

    count++;
   
    //chekpointy
    if(count%40==0){
     
      g.fillArc((int)lista_punktow[i].x-5, (int)lista_punktow[i].y-5, 10, 10, 0, 360);
      //g.drawString("X:"+(int)lista_punktow[i].x, (int)lista_punktow[i].x+4, (int)lista_punktow[i].y);
      //g.drawString("Y:"+(int)lista_punktow[i].y, (int)lista_punktow[i].x+35, (int)lista_punktow[i].y);
     
      lista_check[ID-1]= new CheckPoint(ID, (int)lista_punktow[i].x, i, 0, 0, time/1000000000);
      ID++;
View Full Code Here

Examples of java.awt.Graphics.fillArc()

        int upelo = Color.black.getRGB();
        {
            BufferedImage buf = new BufferedImage(20, 20, BufferedImage.TYPE_INT_ARGB);
            Graphics gr = buf.getGraphics();
            gr.setColor(new Color(upolera));
            gr.fillArc(3, 3, 13, 13, 0, 180);
            gr.setColor(new Color(upantalon));
            gr.fillArc(3, 3, 13, 13, 180, 180);
            gr.setColor(new Color(ufranja));
            gr.drawOval(2, 2, 15, 15);
            imgLoc = buf.getScaledInstance(20, 20, Image.SCALE_SMOOTH);
View Full Code Here

Examples of java.awt.Graphics.fillArc()

            BufferedImage buf = new BufferedImage(20, 20, BufferedImage.TYPE_INT_ARGB);
            Graphics gr = buf.getGraphics();
            gr.setColor(new Color(upolera));
            gr.fillArc(3, 3, 13, 13, 0, 180);
            gr.setColor(new Color(upantalon));
            gr.fillArc(3, 3, 13, 13, 180, 180);
            gr.setColor(new Color(ufranja));
            gr.drawOval(2, 2, 15, 15);
            imgLoc = buf.getScaledInstance(20, 20, Image.SCALE_SMOOTH);
        }
        for (int k = 0; k < 7; k++) {
View Full Code Here

Examples of java.awt.Graphics.fillArc()

        {
            BufferedImage buf = new BufferedImage(20, 20, BufferedImage.TYPE_INT_ARGB);
            Graphics gr = buf.getGraphics();
            gr.setColor(impl.getColorCamiseta());
            gr.fillArc(4, 4, 11, 11, 0, 180);
            gr.setColor(impl.getColorPantalon());
            gr.fillArc(4, 4, 11, 11, 180, 180);
            gr.setColor(impl.getColorFranja());
            gr.drawOval(2, 2, 15, 15);
            imgVis = buf.getScaledInstance(20, 20, Image.SCALE_SMOOTH);
View Full Code Here

Examples of java.awt.Graphics.fillArc()

            BufferedImage buf = new BufferedImage(20, 20, BufferedImage.TYPE_INT_ARGB);
            Graphics gr = buf.getGraphics();
            gr.setColor(impl.getColorCamiseta());
            gr.fillArc(4, 4, 11, 11, 0, 180);
            gr.setColor(impl.getColorPantalon());
            gr.fillArc(4, 4, 11, 11, 180, 180);
            gr.setColor(impl.getColorFranja());
            gr.drawOval(2, 2, 15, 15);
            imgVis = buf.getScaledInstance(20, 20, Image.SCALE_SMOOTH);
        }
        for (int k = 0; k < 7; k++) {
View Full Code Here

Examples of java.awt.Graphics.fillArc()

    g.setColor(Color.RED);
    g.fillRect(150, 50, 50, 30);
    g.drawRect(150, 50, 300, 60);
    g.setColor(Color.ORANGE);
    g.translate(250, 250);
    g.fillArc(-50, -50, 100, 100, 0, 360);
    assertEquals(i, j);
  }

  @Test
  public void testGroupComplex2() {
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.