Package java.awt

Examples of java.awt.Graphics2D.fillOval()


            g2.fillOval(p1.x-d,p1.y-d,d*2,d*2);
            g2.setColor(Color.WHITE);
            g2.drawOval(p1.x-d,p1.y-d,d*2-1,d*2-1);

            g2.setColor(Color.BLACK);
            g2.fillOval(p2.x-d,p2.y-d,d*2,d*2);
            g2.setColor(Color.WHITE);
            g2.drawOval(p2.x-d,p2.y-d,d*2-1,d*2-1);

            g2.setXORMode(Color.RED);
            g2.setColor(Color.WHITE);
View Full Code Here


      if (transparent.getValue()==false)
      {
        if (showBackground.getValue())
        {
          g.setColor(backColor.getValue());
          g.fillOval(distance,distance,w-distance*2,h-distance*2);
          g.setColor(Color.BLACK);
          g.drawOval(distance,distance,w-distance*2,h-distance*2);
        }
      }

View Full Code Here

      } else distance=w/2;

      if (transparent.getValue()==false)
      {
        g.setColor(buttonColor.getValue());
        g.fillOval(mitteX-distance,mitteY-distance,2*distance,2*distance);
        //g.setColor(Color.black);
        //g.drawOval(mitteX-distance,mitteY-distance,2*distance,2*distance);
      }
        // Draw Linien
        x1=w/2;
View Full Code Here

        g.setColor(nibbleColor.getValue());
       
        if (showNibbleAsCircle.getValue())
        {
          int disX=(int) ( ((double)w)/100.0 * (double)nibbleCircleSizeInProzent.getValue() );
          g.fillOval(mitteX-x2-1-disX, mitteY-y2-disX,disX*2, disX*2);
          g.setColor(Color.BLACK);
          g.drawOval(mitteX-x2-1-disX, mitteY-y2-disX,disX*2, disX*2);
        } else
        {
            AffineTransform origTransform = g.getTransform();
View Full Code Here

        if(d.isStranded()) {
                g2d.setColor(Color.RED);
        }
        g2d.drawString("Detective "+(i+1)+": "+d.getPosition().getPosition(), 20, detYOffset+pixPerDetective*i);
              g2d.setColor(Detective.getColor(i));
              g2d.fillOval(5, detYOffset-9+pixPerDetective*i, 10, 10);
              g2d.setColor(Move.getColor(TAXI));
        g2d.drawString(""+d.getTaxiTickets()+"x T", 20, detYOffset+pixPerDetective*i+20);
              g2d.setColor(Move.getColor(BUS));
        g2d.drawString(""+d.getBusTickets()+"x B", 60, detYOffset+pixPerDetective*i+20);
              g2d.setColor(Move.getColor(UG));
View Full Code Here

      }
     
      if(Manager.getOptions().isCheat() || game.isCheckPoint()) {
            g2d.setColor(Color.BLACK);
        g2d.drawString("MrX: "+b.getMrX().getPosition().getPosition(), 20, mrXPos);
            g2d.fillOval(5, mrXPos-9, 10, 10);
      }
         
          // here goes the movement history of MrX
          y = mrXPos + 20;
          int maxY = y;
View Full Code Here

              xPos = x.getNextInt();
              if (i % getStep() == 0) {
                updateInfos(i, "Plotting obs " + i, false);
              }
              if (c1[x.getObsID(xPos) - 1] == match) {
                g1.fillOval((int) ((x.getValue(xPos) - xMin) / (xMax - xMin) * (WIDTH - 1)), (HEIGHT - 1)
                    - (int) ((x.getValue(xPos, yVar) - yMin) / (yMax - yMin) * (HEIGHT - 1)), pointSize, pointSize);
              }
            } catch (Exception e) {
              break;
            }
View Full Code Here

              xPos = x.getNextInt();
              if (i % getStep() == 0) {
                updateInfos(i, "Plotting obs " + i, false);
              }
              g1.setColor(JavaWatColor.getColor(c1[x.getObsID(xPos) - 1]));
              g1.fillOval((int) ((x.getValue(xPos) - xMin) / (xMax - xMin) * (WIDTH - 1)), (HEIGHT - 1)
                  - (int) ((x.getValue(xPos, yVar) - yMin) / (yMax - yMin) * (HEIGHT - 1)), pointSize, pointSize);
            } catch (Exception e) {
              break;
            }
          }
View Full Code Here

            if ((int) ((x.getValue(j, row) - y.getUniStats().getMinValue()) * yFoot) >= 0) {
              //System.err.println(x.getValue(j,row) +" " + y.getUniStats().getMinValue() +" " + yFoot);
              if (!done[(int) ((x.getValue(j, row) - y.getUniStats().getMinValue()) * yFoot)]) {
                if (c1[x.getObsID(j) - 1] == match) {
                  g2.setColor(JavaWatColor.getColor(c1[x.getObsID(j) - 1]));
                  g2.fillOval(i, HEIGHT - ((int) (((x.getValue(j, row) - y.getUniStats().getMinValue())) * yFoot)), 1, 1);
                }
                done[(int) ((x.getValue(j, row) - y.getUniStats().getMinValue()) * yFoot)] = true;
              }
            }
          }
View Full Code Here

            if ((int) ((x.getValue(j, row) - y.getUniStats().getMinValue()) * yFoot) >= 0) {
              //System.err.println(x.getValue(j,row) +" " + y.getUniStats().getMinValue() +" " + yFoot);
              if (!done[(int) ((x.getValue(j, row) - y.getUniStats().getMinValue()) * yFoot)]) {
                if (c1[x.getObsID(j) - 1] == match) {
                  g2.setColor(JavaWatColor.getColor(c1[x.getObsID(j) - 1]));
                  g2.fillOval(i, HEIGHT - ((int) (((x.getValue(j, row) - y.getUniStats().getMinValue())) * yFoot)), 1, 1);
                }
                done[(int) ((x.getValue(j, row) - y.getUniStats().getMinValue()) * yFoot)] = true;
              }
            }
          }
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.