Package java.awt

Examples of java.awt.Graphics.fillArc()


    // the data
    for(int num=0; num<MAX_TRACK; num++)
      if(show[num]) {
        g.setColor(colors[num]);   
        for(int i=0; i<curIndex; i++)
          g.fillArc((int)(i * xStep) + 30, h - 20 - (int)(trackData[num][i] * yStep), 2, 2, 0, 360);
      }

    // highlight a certain point and give its values in trackData
    if(highlightIndex != 0)
    {
View Full Code Here


      g.setColor(Color.gray);
      g.drawRect(0, 0, 2*radius-1, 2*radius-1);
    }
    // relleno de la bola
    g.setColor(color);
    g.fillArc(0, 0, 2*radius-1, 2*radius-1, 0, 360);
    // contorno
    g.setColor(new Color(0,0,0,80));
    g.drawArc(0, 0, 2*radius-1, 2*radius-1, 0, 360);
    // brillo
    g.setColor(new Color(250,250,250,80));
View Full Code Here

    // brillo
    g.setColor(new Color(250,250,250,80));
    int width = (int) (radius/2);
    int x = radius + (int) (radius / 4);
    int y = radius - (int) (2 * radius / 3);
    g.fillArc(x, y, width, width, 0, 360);
    // marquita con el centro de la bola
    g.setColor(new Color(0,0,0,80));
    g.drawLine(radius - 5, radius, radius + 5, radius);
    g.drawLine(radius, radius - 5, radius, radius + 5);
    // numero de bola
View Full Code Here

      g.setColor(Color.gray);
      g.drawRect(0, 0, 2*radius-1, 2*radius-1);
    }
    // relleno de la bola
    g.setColor(color);
    g.fillArc(0, 0, 2*radius-1, 2*radius-1, 0, 360);
    // contorno
    g.setColor(new Color(0,0,0,80));
    g.drawArc(0, 0, 2*radius-1, 2*radius-1, 0, 360);
    // brillo
    g.setColor(new Color(250,250,250,80));
View Full Code Here

    // brillo
    g.setColor(new Color(250,250,250,80));
    int width = (int) (radius/2);
    int x = radius + (int) (radius / 4);
    int y = radius - (int) (2 * radius / 3);
    g.fillArc(x, y, width, width, 0, 360);
    // marquita con el centro de la bola
    g.setColor(new Color(0,0,0,80));
    g.drawLine(radius - 5, radius, radius + 5, radius);
    g.drawLine(radius, radius - 5, radius, radius + 5);
    // numero de bola
View Full Code Here

    Motor motor = Motor.getInstance();
   
    BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);
    Graphics g = img.getGraphics();
    g.setColor(Color.orange);
    g.fillArc(50, 50, 49, 49, 0, 360);
    //g.fillRect(0, 0, 100, 100);
   
    MyObj o1 = new MyObj();
    MyObj o2 = new MyObj();
    MyObj o3 = new MyObj();
View Full Code Here

      g.setColor(Color.gray);
      g.drawRect(0, 0, 2*radius-1, 2*radius-1);
    }
    // relleno de la bola
    g.setColor(color);
    g.fillArc(0, 0, 2*radius-1, 2*radius-1, 0, 360);
    // contorno
    g.setColor(new Color(0,0,0,80));
    g.drawArc(0, 0, 2*radius-1, 2*radius-1, 0, 360);
    // brillo
    g.setColor(new Color(250,250,250,80));
View Full Code Here

    // brillo
    g.setColor(new Color(250,250,250,80));
    int width = (int) (radius/2);
    int x = radius + (int) (radius / 4);
    int y = radius - (int) (2 * radius / 3);
    g.fillArc(x, y, width, width, 0, 360);
    // marquita con el centro de la bola
    g.setColor(new Color(0,0,0,80));
    g.drawLine(radius - 5, radius, radius + 5, radius);
    g.drawLine(radius, radius - 5, radius, radius + 5);
    // numero de bola
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.