FileDocCategorySizeDatePackage
SolidPaint.javaAPI DocExample496Mon Apr 05 10:08:54 BST 1999None

SolidPaint

public class SolidPaint extends ApplicationFrame

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

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

    Graphics2D g2 = (Graphics2D)g;
    Arc2D pie = new Arc2D.Float(0, 50, 150, 150, -30, 90, Arc2D.PIE);
    g2.setPaint(Color.blue);
    g2.fill(pie);