Package java.awt

Examples of java.awt.Graphics.fillOval()


                        if ((int) ((Elenco[col].getValue(j, row) - Elenco[row].getUniStats().getMinValue()) * yFoot) >= 0) {
                          if (!done[(int) ((Elenco[col].getValue(j, row) - Elenco[row].getUniStats().getMinValue()) * yFoot)]) {
                            updateInfos(((row * Elenco.length) + (col)) * 10000 + i + (k++), "Plotting scatter "
                                + ((row * Elenco.length) + (col + 1)), false);
                            g.setColor(JavaWatColor.getColor(c1[curClust][Elenco[col].getObsID(j) - 1]));
                            g.fillOval(col * WIDTH_TOT + 5 + /*i - 1,*/
                            (int) (((Elenco[col].getValue(j) - Elenco[col].getUniStats().getMinValue())) * xFoot) - 1,
                                (((row + 1) * HEIGHT_TOT) - 5 - (int) (((Elenco[col].getValue(j, row) - Elenco[row]
                                    .getUniStats().getMinValue())) * yFoot)), 1, 1);
                            done[(int) ((Elenco[col].getValue(j, row) - Elenco[row].getUniStats().getMinValue()) * yFoot)] = true;
                          }
View Full Code Here


  public Image getJobIcon(Rectangle bounds) {
    int width = 100, height = 100;
    BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);
    Graphics g = bi.getGraphics();
    g.setColor(new Color(0, 0, 0, 50));
    g.fillOval(0, 0, width, height);
    for (int i = 0, monoChannel = 0; i < 10; i++, monoChannel = (int) ((1 - Math.exp(-i * 0.5)) * 255)) {
      g.setColor(new Color(monoChannel, monoChannel, monoChannel, 255));
      int r = (int) Math.pow(i, 1.5), s = (int) (r * 2.9);
      g.fillOval(r, r, width - s, height - s);
    }
View Full Code Here

    g.setColor(new Color(0, 0, 0, 50));
    g.fillOval(0, 0, width, height);
    for (int i = 0, monoChannel = 0; i < 10; i++, monoChannel = (int) ((1 - Math.exp(-i * 0.5)) * 255)) {
      g.setColor(new Color(monoChannel, monoChannel, monoChannel, 255));
      int r = (int) Math.pow(i, 1.5), s = (int) (r * 2.9);
      g.fillOval(r, r, width - s, height - s);
    }
    return bi.getScaledInstance(bounds.width, bounds.height, Image.SCALE_SMOOTH);
  }

  @Override
View Full Code Here

      g.setColor(new Color(130 + monoChannel, 130 + monoChannel, 130 + monoChannel));
      g.drawPolyline(new int[] { i, qLength - i, qLength - i }, new int[] { height - i, height - i, i }, 3);
      g.fillArc(width - height + i, i, height - 2 * i, height - 2 * i, 225, 180);
    }
    g.fillRect(5, 5, qLength - 9, height - 9);
    g.fillOval(width - height + 5, 5, height - 10, height - 10);
    return bi.getScaledInstance(bounds.width, bounds.height, Image.SCALE_SMOOTH);
  }

  @Override
  public Image getEdgeIcon(Rectangle bounds, Point[] anglePoints) {
View Full Code Here

    if (started && (cities != null)) {
      g.setColor(Color.green);
      for (int i = 0; i < cityCount; i++) {
        int xpos = cities[i].getx();
        int ypos = cities[i].gety();
        g.fillOval(xpos - 5, ypos - 5, 10, 10);
      }

      g.setColor(Color.white);
      for (int i = 0; i < cityCount; i++) {
        int icity = chromosomes[0].getCity(i);
View Full Code Here

            if (getManaCostUncolored() > 0)
            {
                g.setFont(textFontB);
                g.setColor(Color.gray);
                g.fillOval(x, y, 14, 14);
                g.setColor(Color.black);
                g.drawString(""+getManaCostUncolored(), x+4, y+11);
            
            }
View Full Code Here

        Location loc = painter.getLocation();
        int x = loc.getX();
        int y = loc.getY();
        GraphicsUtil.switchToWidth(g, 2);
        g.setColor(Color.BLACK);
        g.fillOval(x - 12, y - 7, 4, 4);
        g.drawLine(x - 15, y, x - 5, y);
        g.fillOval(x - 12, y + 3, 4, 4);
        GraphicsUtil.switchToWidth(g, 1);
    }
View Full Code Here

        int y = loc.getY();
        GraphicsUtil.switchToWidth(g, 2);
        g.setColor(Color.BLACK);
        g.fillOval(x - 12, y - 7, 4, 4);
        g.drawLine(x - 15, y, x - 5, y);
        g.fillOval(x - 12, y + 3, 4, 4);
        GraphicsUtil.switchToWidth(g, 1);
    }

    static Value[] computeResult(BitWidth width, Value a, Value b, Value upper) {
        int w = width.getWidth();
View Full Code Here

            g.setColor(Color.black);
            g.drawRect(x + 5, y + 2, 11, 17);
            Value[] v = { Value.TRUE, Value.FALSE };
            for (int i = 0; i < 3; i++) {
                g.setColor(v[i % 2].getColor());
                g.fillOval(x + 5 - 1, y + 5 + 5 * i - 1, 3, 3);
                g.setColor(v[(i + 1) % 2].getColor());
                g.fillOval(x + 16 - 1, y + 5 + 5 * i - 1, 3, 3);
            }
        }
    }
View Full Code Here

            Value[] v = { Value.TRUE, Value.FALSE };
            for (int i = 0; i < 3; i++) {
                g.setColor(v[i % 2].getColor());
                g.fillOval(x + 5 - 1, y + 5 + 5 * i - 1, 3, 3);
                g.setColor(v[(i + 1) % 2].getColor());
                g.fillOval(x + 16 - 1, y + 5 + 5 * i - 1, 3, 3);
            }
        }
    }

    @Override
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.