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

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

  public ASTPolygon(drawphase1 p, int id) {
    super(p, id);
  }
  
  public void generate()
  {
    for(int i=0; i<jjtGetNumChildren()-2; i=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\"/>");

     }
     System.out.println("<line x1=\"" + ((ASTInt) jjtGetChild(0)).val +
          "\" y1=\"" + ((ASTInt) jjtGetChild(1)).val +
          "\" x2=\"" + ((ASTInt) jjtGetChild(jjtGetNumChildren()-2)).val +
          "\" y2=\"" + ((ASTInt) jjtGetChild(jjtGetNumChildren()-1)).val +
          "\" stroke=\"black\" stroke-width=\"1\"/>");

  }
}
