Examples of drawOval()


Examples of java.awt.Graphics2D.drawOval()

                            (int) (kreis.getRadius() * 2),
                            (int) (kreis.getRadius() * 2));
                }
                if (rahmenDrucken) {
                    g2.setColor(rahmenFarbe);
                    g2.drawOval(
                            (int) (kreis.getCenter().x - kreis.getRadius()),
                            (int) (kreis.getCenter().y - kreis.getRadius()),
                            (int) (kreis.getRadius() * 2),
                            (int) (kreis.getRadius() * 2));
                }
View Full Code Here

Examples of java.awt.Graphics2D.drawOval()

                            (int) (kreis.holeRadius() * 2),
                            (int) (kreis.holeRadius() * 2));
                }
                if (rahmenDrucken) {
                    g2.setColor(rahmenFarbe);
                    g2.drawOval(
                            (int) (kreis.holeMitte().x - kreis.holeRadius()),
                            (int) (kreis.holeMitte().y - kreis.holeRadius()),
                            (int) (kreis.holeRadius() * 2),
                            (int) (kreis.holeRadius() * 2));
                }
View Full Code Here

Examples of java.awt.Graphics2D.drawOval()

            g.setColor(Color.RED);
            g.setStroke(new BasicStroke(
                    2,
                    BasicStroke.CAP_ROUND,
                    BasicStroke.JOIN_ROUND));
            g.drawOval(
                    (int) bester.getPosition().x - radius / 2,
                    (int) bester.getPosition().y - radius / 2,
                    radius,
                    radius);
        } else if (this.pars.getAutomatInGIFModus().startsWith(
View Full Code Here

Examples of java.awt.Graphics2D.drawOval()

            g.setColor(Color.RED);
            g.setStroke(new BasicStroke(
                    2,
                    BasicStroke.CAP_ROUND,
                    BasicStroke.JOIN_ROUND));
            g.drawOval(
                    (int) this.getAkteure().get(num).getPosition().x
                        - radius / 2,
                    (int) this.getAkteure().get(num).getPosition().y
                        - radius / 2,
                    radius,
View Full Code Here

Examples of java.awt.Graphics2D.drawOval()

            g.setColor(Color.red);
        }
       
        g.fillOval(img.getWidth() - 25, 50, 20, 20);
        g.setColor(Color.black);
        g.drawOval(img.getWidth() - 25, 50, 20, 20);
       
        return img;
    }

    @Override
View Full Code Here

Examples of java.awt.Graphics2D.drawOval()

        g.drawRect(width / 2 - 3, width / 2 - 3, width / 2 + 6, 3 * width / 2 + 6);

        g.setColor(top);
        g.fillOval(width / 2, 1 * width / 2, radius, radius);
        g.setColor(Color.black);
        g.drawOval(width / 2, 1 * width / 2, radius, radius);

        g.setColor(middle);
        g.fillOval(width / 2, 2 * width / 2, radius, radius);
        g.setColor(Color.black);
        g.drawOval(width / 2, 2 * width / 2, radius, radius);
View Full Code Here

Examples of java.awt.Graphics2D.drawOval()

        g.drawOval(width / 2, 1 * width / 2, radius, radius);

        g.setColor(middle);
        g.fillOval(width / 2, 2 * width / 2, radius, radius);
        g.setColor(Color.black);
        g.drawOval(width / 2, 2 * width / 2, radius, radius);

        g.setColor(bottom);
        g.fillOval(width / 2, 3 * width / 2, radius, radius);
        g.setColor(Color.black);
        g.drawOval(width / 2, 3 * width / 2, radius, radius);
View Full Code Here

Examples of java.awt.Graphics2D.drawOval()

        g.drawOval(width / 2, 2 * width / 2, radius, radius);

        g.setColor(bottom);
        g.fillOval(width / 2, 3 * width / 2, radius, radius);
        g.setColor(Color.black);
        g.drawOval(width / 2, 3 * width / 2, radius, radius);
       
        return img;
    }

    @Override
View Full Code Here

Examples of main.ch.morrolan.gibb.snake.Painter.drawOval()

        Painter painter;

        g = gMock();
        painter = painter1(g);

        painter.drawOval(0, 0, 1, 1);
        verify(g).drawOval(0, 0, 10, 10);

        painter.drawOval(3, 5, 2, 3);
        verify(g).drawOval(30, 50, 20, 30);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawOval()

    GC gcImage = new GC(image);
    gcImage.setForeground(Colors.blue);
    int angle = (percent * 360) / 100;
    gcImage.setBackground(Colors.blues[Colors.BLUES_MIDDARK]);
    gcImage.fillArc(0,0,width,height,90-angle,angle);
    gcImage.drawOval(0 , 0 , width-1, height-1);
    gcImage.dispose();
    return image;
  }
 
  public static void drawPie(GC gc,int x, int y,int width,int height,int percent) {
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.