Package java.awt

Examples of java.awt.Graphics2D.fillOval()


                                planePoint2.x * heightProfileGridWidth + heightProfileBoundingBox.upperLeftCorner().x,
                                planePoint2.y * heightProfileGridHeight + heightProfileBoundingBox.upperLeftCorner().y));
                        Vector2D p3 = this.getPointInVisualization(new Vector2D(
                                planePoint3.x * heightProfileGridWidth + heightProfileBoundingBox.upperLeftCorner().x,
                                planePoint3.y * heightProfileGridHeight + heightProfileBoundingBox.upperLeftCorner().y));
                        g.fillOval((int) p1.x - 2, (int) p1.y - 2, 4, 4);
                        g.fillOval((int) p2.x - 2, (int) p2.y - 2, 4, 4);
                        g.fillOval((int) p3.x - 2, (int) p3.y - 2, 4, 4);
                       
                        g.drawLine((int) v.x, (int) v.y, (int) v.translate(d).x, (int) v.translate(d).y);
                    }
View Full Code Here


                                planePoint2.y * heightProfileGridHeight + heightProfileBoundingBox.upperLeftCorner().y));
                        Vector2D p3 = this.getPointInVisualization(new Vector2D(
                                planePoint3.x * heightProfileGridWidth + heightProfileBoundingBox.upperLeftCorner().x,
                                planePoint3.y * heightProfileGridHeight + heightProfileBoundingBox.upperLeftCorner().y));
                        g.fillOval((int) p1.x - 2, (int) p1.y - 2, 4, 4);
                        g.fillOval((int) p2.x - 2, (int) p2.y - 2, 4, 4);
                        g.fillOval((int) p3.x - 2, (int) p3.y - 2, 4, 4);
                       
                        g.drawLine((int) v.x, (int) v.y, (int) v.translate(d).x, (int) v.translate(d).y);
                    }
                }
View Full Code Here

                        Vector2D p3 = this.getPointInVisualization(new Vector2D(
                                planePoint3.x * heightProfileGridWidth + heightProfileBoundingBox.upperLeftCorner().x,
                                planePoint3.y * heightProfileGridHeight + heightProfileBoundingBox.upperLeftCorner().y));
                        g.fillOval((int) p1.x - 2, (int) p1.y - 2, 4, 4);
                        g.fillOval((int) p2.x - 2, (int) p2.y - 2, 4, 4);
                        g.fillOval((int) p3.x - 2, (int) p3.y - 2, 4, 4);
                       
                        g.drawLine((int) v.x, (int) v.y, (int) v.translate(d).x, (int) v.translate(d).y);
                    }
                }
            }
View Full Code Here

    } else {
      g.setColor(this.bodyColor);
    }

    g.setPaint(gp);
    g.fillOval(position.x+2, position.y, this.dimension.height,
        this.dimension.height);
    g.setColor(Color.black);
        g.setStroke(new BasicStroke(1.2f));
        g.drawOval(position.x+2, position.y, this.dimension.height,
        this.dimension.height );
View Full Code Here

                    if (gp == null) {
                        g2.setColor(fuellungFarbe);
                    } else {
                        g2.setPaint(gp);
                    }
                    g2.fillOval(
                            (int) (kreis.holeMitte().x - kreis.holeRadius()),
                            (int) (kreis.holeMitte().y - kreis.holeRadius()),
                            (int) (kreis.holeRadius() * 2),
                            (int) (kreis.holeRadius() * 2));
                }
View Full Code Here

                Vector2D pos = this.getPointInVisualization(new Vector2D(
                        Math.sin((double) i / 30 * Math.PI) * rad,
                        Math.cos((double) i / 30 * Math.PI) * rad));
               
                if (i % 60 == 30) {
                    g.fillOval(
                            (int) (pos.x - huge / 2),
                            (int) (pos.y - huge / 2),
                            (int) huge,
                            (int) huge);
                } else if (i % 5 == 0) {
View Full Code Here

                            (int) (pos.x - huge / 2),
                            (int) (pos.y - huge / 2),
                            (int) huge,
                            (int) huge);
                } else if (i % 5 == 0) {
                    g.fillOval(
                            (int) (pos.x - large / 2),
                            (int) (pos.y - large / 2),
                            (int) large,
                            (int) large);
                } else {
View Full Code Here

                            (int) (pos.x - large / 2),
                            (int) (pos.y - large / 2),
                            (int) large,
                            (int) large);
                } else {
                    g.fillOval(
                            (int) (pos.x - small / 2),
                            (int) (pos.y - small / 2),
                            (int) small,
                            (int) small);
                }
View Full Code Here

                    if (gp == null) {
                        g2.setColor(fuellungFarbe);
                    } else {
                        g2.setPaint(gp);
                    }
                    g2.fillOval(
                            (int) (kreis.getCenter().x - kreis.getRadius()),
                            (int) (kreis.getCenter().y - kreis.getRadius()),
                            (int) (kreis.getRadius() * 2),
                            (int) (kreis.getRadius() * 2));
                }
View Full Code Here

                    if (gp == null) {
                        g2.setColor(fuellungFarbe);
                    } else {
                        g2.setPaint(gp);
                    }
                    g2.fillOval(
                            (int) (kreis.holeMitte().x - kreis.holeRadius()),
                            (int) (kreis.holeMitte().y - kreis.holeRadius()),
                            (int) (kreis.holeRadius() * 2),
                            (int) (kreis.holeRadius() * 2));
                }
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.