FileDocCategorySizeDatePackage
drawingPoly.javaAPI DocExample1349Mon Mar 24 02:01:38 GMT 1997None

drawingPoly

public class drawingPoly extends Frame

Fields Summary
int[]
xPoints
int[]
yPoints
int[]
nPoints
Constructors Summary
drawingPoly()

      
        super ("Drawing Poly");
        resize (175, 225);
    
Methods Summary
public static voidmain(java.lang.String[] args)

        Frame f = new drawingPoly ();
        f.show();
    
public voidpaint(java.awt.Graphics g)

      g.translate (insets().left, insets().top);
	g.drawPolygon (xPoints[0], yPoints[0], nPoints[0]);
	g.fillPolygon (xPoints[1], yPoints[1], nPoints[1]);
	g.drawPolygon (new Polygon(xPoints[2], yPoints[2], nPoints[2]));
	g.fillPolygon (new Polygon(xPoints[3], yPoints[3], nPoints[3]));