FileDocCategorySizeDatePackage
OvalIcon.javaAPI DocExample460Thu Oct 24 20:14:20 BST 2002None

OvalIcon

public class OvalIcon extends Object implements Icon

Fields Summary
private int
width
private int
height
Constructors Summary
public OvalIcon(int w, int h)

    width = w;
    height = h;
  
Methods Summary
public intgetIconHeight()

 return height; 
public intgetIconWidth()

 return width; 
public voidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)

    g.drawOval(x, y, width-1, height-1);