FileDocCategorySizeDatePackage
OvalIcon.javaAPI DocExample458Mon Nov 09 12:45:54 GMT 1998None

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);