Package java.awt

Examples of java.awt.Graphics2D.fillOval()


        }else
          g2.setColor(new Color(0,0,255,50));
       
        if( !World.This().listUnusualArea.contains(str) ){
           g2.drawString(str,x*tileSize - xSize/2 + 20/2, y*tileSize - ySize/2 + tileSize/2);
          g2.fillOval(x*tileSize - xSize/2 + tileSize/2, y*tileSize - ySize/2 + tileSize/2, xSize, ySize);
        }
    }
  }
 
  /**
 
View Full Code Here


      // System.out.println(v.iX+"-"+v.iY+" <-> "+d+" - "+ratio);
      gr.setColor(nodeColor);
      int x = v.x;
      int y = v.y;
      // System.out.println(x+"-"+y);
      gr.fillOval(x, -y, 3, 3);
      gr.setColor(Color.BLACK);
      gr.drawString("" + i, x + 2, -y + 2);

      // gr.fillOval(v.iX - 3, d.height - v.iY - 3, 7, 7);
      // gr.setColor(Color.BLACK);
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);
        // Text
        g.setColor(TEXT_COLOR);
View Full Code Here

              xPos = x.getNextInt();
              if (i % getStep() == 0) {
                updateInfos(i, "Plotting obs " + i, false);
              }
              g1.setColor(JavaWatColor.getColor(c1[curClust][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

              xPos = x.getNextInt();
              if (i % getStep() == 0) {
                updateInfos(i, "Plotting obs " + i, false);
              }
              if (c1[curClust][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

    Color c = cpool.getColor(argColor.x, argColor.y, argColor.z);
    g.setColor(c);
    sp1.x -= argRadiusOnScreen;
    sp1.y -= argRadiusOnScreen;
    g.fillOval((int) sp1.x, (int) sp1.y, (int) argRadiusOnScreen * 2, (int) argRadiusOnScreen * 2);
  }

  private final Vec2 sp1 = new Vec2();
  private final Vec2 sp2 = new Vec2();

View Full Code Here

         g.setColor(Color.blue);

         for(DrawableNode node : nodes){
             //Csúcs kirajzolása
             g.setColor(Color.blue);
             g2D.fillOval(node.getPos().x, node.getPos().y, NODE_SIZE, NODE_SIZE);
            
             //Csúcs címke kirajzolása
             g.setColor(Color.white);
             g2D.drawString(node.getNode().getName(), node.getPos().x + (int)NODE_SIZE / 7 * 3, node.getPos().y + (int)NODE_SIZE / 7 * 3);

 
View Full Code Here

 
  public void paintComponent(Graphics g){ 
    super.paintComponent(g);
    Graphics2D g2d = (Graphics2D)g;
    g2d.setColor(Color.DARK_GRAY);
    g2d.fillOval(240, 140, 10, 10)
    /*if(clicked){
      for(int i=0;i<items.size();i++){
        System.out.println(getParent());
        getParent().add(items.get(i), new Integer(2));
      }
View Full Code Here

        this.tile = new BufferedImage(40, 20, BufferedImage.TYPE_INT_RGB);
        Graphics2D tileg2d = tile.createGraphics();
        tileg2d.setBackground(Color.WHITE);
        tileg2d.clearRect(0, 0, tile.getWidth(), tile.getHeight());
        tileg2d.setColor(Color.BLUE);
        tileg2d.fillOval(2, 2, tile.getWidth() - 2, tile.getHeight() - 2);
        tileg2d.dispose();
        Rectangle2D rect = new Rectangle2D.Double(
                2, 2,
                tile.getWidth() / 2.0, tile.getHeight() / 2.0);
        this.paint = new TexturePaint(tile, rect);
View Full Code Here

  @Override
  public void processRequest(RequestContext context) {
    BufferedImage bim = new BufferedImage(200, 200, BufferedImage.TYPE_3BYTE_BGR);
   
    Graphics2D g2d = bim.createGraphics();
    g2d.fillOval(0, 0, 200, 200);
    g2d.dispose();
   
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    try {
      ImageIO.write(bim, "png", bos);
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.