Package java.awt

Examples of java.awt.Graphics.fillOval()


                    BufferedImage.TYPE_INT_RGB);
            Graphics drawable = image.getGraphics();
            drawable.setColor(bgColor);
            drawable.fillRect(0, 0, 270, 270);
            drawable.setColor(fgColor);
            drawable.fillOval(25, 25, 220, 220);
            drawable.setColor(java.awt.Color.blue);
            drawable.drawRect(0, 0, 269, 269);
            drawable.setColor(java.awt.Color.black);
            drawable.drawString(
                    "r=" + String.valueOf(fgColor.getRed()) + ",g="
View Full Code Here


                BufferedImage.TYPE_INT_RGB);
        Graphics drawable = image.getGraphics();
        drawable.setColor(Color.lightGray);
        drawable.fillRect(0, 0, 200, 200);
        drawable.setColor(Color.yellow);
        drawable.fillOval(25, 25, 150, 150);
        drawable.setColor(Color.blue);
        drawable.drawRect(0, 0, 199, 199);

        // Use the parameter to create dynamic content.
        drawable.setColor(Color.black);
View Full Code Here

                BufferedImage.TYPE_INT_RGB);
        Graphics drawable = image.getGraphics();
        drawable.setColor(Color.lightGray);
        drawable.fillRect(0, 0, 200, 200);
        drawable.setColor(Color.yellow);
        drawable.fillOval(25, 25, 150, 150);
        drawable.setColor(Color.blue);
        drawable.drawRect(0, 0, 199, 199);

        // Use the parameter to create dynamic content.
        drawable.setColor(Color.black);
View Full Code Here

        if (aux.getIconWidth() > 15) {
            Graphics graphics = c.getGraphics();

            graphics.setColor(new Color(250, 250, 250, 70));
            graphics.fillOval(0, 0, aux.getIconWidth(), aux.getIconHeight());
        }
    }

    /**
     * Deixa o JMini visivel ou não
View Full Code Here

      else
      {
        graphics.setColor(borderColor);

        if (ovals)
          graphics.fillOval(x, y, w, h);
        else
          graphics.fillRect(x, y, w, h);

        graphics.setColor(featureColor);
View Full Code Here

          graphics.fillRect(x, y, w, h);

        graphics.setColor(featureColor);

        if (ovals)
          graphics.fillOval(x + 2, y + 2, wInset, hInset);
        else
          graphics.fillRect(x + 2, y + 2, wInset, hInset);
      }
      // else
      // {
View Full Code Here

        // or draw EDL
        if (sOptions.getSelectedIndex() == 1)
          x = (int) (Math.round(cVI.dstTime * xMulti));
        int y = (int) (Math.round(featureValue * yMulti));

        graphics.fillOval(x, y, blobSize, blobSize);

        if (i > 0 && connectOption.isSelected())
        {
          Point pP = previousPoints[i - 1][j];
          if (pP != null)
View Full Code Here

        }
        g.drawLine(x0, y0 + parms.getSpine1Y() / 4, x0, spine0y);
      }
      if (fanout <= 1) { // spine is empty
        int diam = SPINE_DOT;
        g.fillOval(spine0x - diam / 2, spine0y - diam / 2, diam, diam);
      } else {
        g.drawLine(spine0x, spine0y, spine1x, spine1y);
      }
    } else {
      int[] xSpine = { spine0x, spine1x, x0 + parms.getSpine1X() / 4 };
View Full Code Here

        GraphicsUtil.switchToWidth(g, SPINE_WIDTH);
        g.setColor(Color.BLACK);
        g.drawLine(x1 + dx, ySpine, x1 + (fanout - 2) * dx, ySpine);
      } else {
        g.setColor(Color.BLACK);
        g.fillOval(x0 - SPINE_DOT / 2, ySpine - SPINE_DOT / 2,
            SPINE_DOT, SPINE_DOT);
      }
    } else {
      int xSpine = (x0 + x1) / 2;
      GraphicsUtil.switchToWidth(g, Wire.WIDTH);
View Full Code Here

        GraphicsUtil.switchToWidth(g, SPINE_WIDTH);
        g.setColor(Color.BLACK);
        g.drawLine(xSpine, y1 + dy, xSpine, y1 + (fanout - 2) * dy);
      } else {
        g.setColor(Color.BLACK);
        g.fillOval(xSpine - SPINE_DOT / 2, y0 - SPINE_DOT / 2,
            SPINE_DOT, SPINE_DOT);
      }
    }
    GraphicsUtil.switchToWidth(g, 1);
  }
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.