/* Generated By:JJTree: Do not edit this line. ASTPolygon.java */

public class ASTPolygon extends SimpleNode {
  public ASTPolygon(int id) {
    super(id);
  }

  public ASTPolygon(drawsimple p, int id) {
    super(p, id);
  }
  
  public void generate()
  {
     for(i = 0;i < jjGetNumChildren();i + 2)
     {
        System.out.println("<line x1=\"" + ((ASTInt) jjtGetChild(i)).val +
        "\" y1=\"" + ((ASTInt) jjtGetChild(i + 1)).val +
        "\" x2=\"" + ((ASTInt) jjtGetChild(i + 2)).val +
        "\" y2=\"" + ((ASTInt) jjtGetChild(i + 3)).val +
        "\" stroke=\"black\" stroke-width=\"1\"/>");
     }
  }
}
