Examples of fillArc()


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

Examples of java.awt.Graphics.fillArc()

      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

Examples of java.awt.Graphics.fillArc()

    // 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

Examples of java.awt.Graphics.fillArc()

      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

Examples of java.awt.Graphics.fillArc()

    // 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

Examples of java.awt.Graphics.fillArc()

    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

Examples of java.awt.Graphics.fillArc()

      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

Examples of java.awt.Graphics.fillArc()

    // 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

Examples of java.awt.Graphics2D.fillArc()

        int i;
        for (i=0; i<pieces.length; i++) {
            // draw the piece
            g.setColor(pieces[i].getColor());
            g.fillArc(circ_x, circ_y, circ_w, circ_w, curr_angle, pieces[i].getAngle());
            curr_angle += pieces[i].getAngle();

            // draw it's legend line
            drawLegendLine(g, 5, height - 5 - 15 * i, pieces[i].getPieceName()+" ("+pieces[i].getFractionPercent()+" %)", pieces[i].getColor());
        }
View Full Code Here

Examples of java.awt.Graphics2D.fillArc()

        }

        // fill the rest
        g.setColor(fillRest.getColor());
        //FIXME: better method to avoid gaps on rounding-differences?
        g.fillArc(circ_x, circ_y, circ_w, circ_w, curr_angle, 360 - curr_angle);
        drawLegendLine(g, 5, height - 5 - 15 * i, fillRest.getPieceName()+" ("+fillRest.getFractionPercent()+" %)", fillRest.getColor());

        //draw border around the circle
        g.setColor(Color.decode("0x"+COL_BORDER));
        g.drawArc(circ_x, circ_y, circ_w, circ_w, 0, 360);
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.