FileDocCategorySizeDatePackage
RoundGradientPaintFill.javaAPI DocExample677Mon Apr 05 10:11:54 BST 1999None

RoundGradientPaintFill

public class RoundGradientPaintFill extends ApplicationFrame

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    RoundGradientPaintFill f = new RoundGradientPaintFill();
    f.setTitle("RoundGradientPaintFill v1.0");
    f.setSize(200, 200);
    f.center();
    f.setVisible(true);
  
public voidpaint(java.awt.Graphics g)

    Graphics2D g2 = (Graphics2D)g;
    RoundRectangle2D r = new RoundRectangle2D.Float(25, 35, 150, 150, 25,
       25);
    RoundGradientPaint rgp = new RoundGradientPaint(75, 75, Color.magenta,
        new Point2D.Double(0, 85), Color.blue);
    g2.setPaint(rgp);
    g2.fill(r);