Package java.awt

Examples of java.awt.Graphics.fillOval()


        Graphics gFill = g.create();
        Insets insets = this.getInsets();
        switch (Symbol){
        case Constants.PS_CIRCLE:
            gFill.setColor( this.getForeground() );
            gFill.fillOval(insets.left, insets.top, this.getWidth() - insets.left + insets.right-1, this.getHeight() - insets.top + insets.bottom-1);
            break;
        case Constants.PS_CROSS:
            gFill.setColor( this.getForeground() );
            cross(gFill);
            break;
View Full Code Here


        Graphics gFill = g.create();
        Insets insets = this.getInsets();
        switch (Symbol){
        case Constants.PS_CIRCLE:
            gFill.setColor( this.getForeground() );
            gFill.fillOval(insets.left, insets.top, this.getWidth() - insets.left + insets.right-1, this.getHeight() - insets.top + insets.bottom-1);
            break;
        case Constants.PS_CROSS:
            gFill.setColor( this.getForeground() );
            cross(gFill);
            break;
View Full Code Here

        Graphics gFill = g.create();
        Insets insets = this.getInsets();
        switch (Symbol){
        case Constants.PS_CIRCLE:
            gFill.setColor( this.getForeground() );
            gFill.fillOval(insets.left, insets.top, this.getWidth() - insets.left + insets.right-1, this.getHeight() - insets.top + insets.bottom-1);
            break;
        case Constants.PS_CROSS:
            gFill.setColor( this.getForeground() );
            cross(gFill);
            break;
View Full Code Here

  public static Image getJobIcon(Rectangle bounds) {
    BufferedImage bi = new BufferedImage(bounds.width, bounds.height, BufferedImage.TYPE_4BYTE_ABGR);
    Graphics g = bi.getGraphics();
    g.setColor(new Color(0, 0, 0, 50));
    g.fillOval(0, 0, bounds.width, bounds.height);
    for (int i = 0, monoChannel = 120; i < 5; i++, monoChannel = (int) ((1 - Math.exp(-i)) * 120 + 135)) {
      g.setColor(new Color(monoChannel, monoChannel, monoChannel, 255));
      g.fillOval(i, i, bounds.width - i * 3, bounds.height - i * 3);
    }
    return bi;
View Full Code Here

    Graphics g = bi.getGraphics();
    g.setColor(new Color(0, 0, 0, 50));
    g.fillOval(0, 0, bounds.width, bounds.height);
    for (int i = 0, monoChannel = 120; i < 5; i++, monoChannel = (int) ((1 - Math.exp(-i)) * 120 + 135)) {
      g.setColor(new Color(monoChannel, monoChannel, monoChannel, 255));
      g.fillOval(i, i, bounds.width - i * 3, bounds.height - i * 3);
    }
    return bi;
  }

  public static Image getStationIcon(String type, Rectangle bounds) {
View Full Code Here

      g.setColor(new Color(130 + monoChannel, 130 + monoChannel, 130 + monoChannel, 255));
      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;
  }

  public static Image getEdgeIcon(Rectangle bounds, Point[] anglePoints) {
    /*creates background image.*/
 
View Full Code Here

                      g.setColor(Color.RED);
                      g.drawLine(startx, starty + HEIGHT_GRAPH, startx + WIDTH_GRAPH, starty);
                      //Draw QQ-plot
                      g.setColor(Color.BLUE);
                      for (int i = 1; i < quantiliX.length; i++) {
                        g.fillOval(startx + (int) (((Elenco[col].getValue(quantiliX[i]) - xmin) / xRange) * WIDTH_GRAPH),
                            (starty + (int) (((ymax - (Elenco[row].getValue(quantiliY[i]))) / yRange) * HEIGHT_GRAPH)),
                            1, 1);
                      }
                    }
                  }
View Full Code Here

                              updateInfos(((row * Elenco.length) + (col)) * 10000 + i + (k++), "Plotting scatter "
                                  + ((row * Elenco.length) + (col + 1)), false);
                              //g.setColor(JavaWatColor.getColor(((Integer)(c.get(Elenco[col].getObsID(j)-1))).intValue()));

                              g.setColor(JavaWatColor.getColor(c1[Elenco[col].getObsID(j) - 1]));
                              g
                                  .fillOval(
                                      col
                                          * WIDTH_TOT
                                          + 5
                                          + /* i - 1,*/
 
View Full Code Here

                        int k = 1;
                        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.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

      colGradient[i] = new Color(channelGradient(i, colGradient.length, red), channelGradient(i, colGradient.length, green), channelGradient(i,
          colGradient.length, blue));
    }
    for (int i = 0; i < colGradient.length; i++) {
      jig.setColor(colGradient[i]);
      jig.fillOval(i * 3, i * 3, 100 - (i * 9), 100 - (i * 9));
    }
    return bi.getScaledInstance(bounds.width, bounds.height, Image.SCALE_SMOOTH);
  }

  private int channelGradient(int x, int rangeX, int rangeY) {
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.