/* 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);
  }

/****************************************************
 Generates the svg code for a polygon, by taking in 
 the x number of children of the Polygon node, and 
 storing them as the x and y values (should have 
 been implemented in terms of lines).
****************************************************/

  public void generate()
  {
    System.out.println
	  ("<polygon points =\"" + ((ASTInt) jjtGetChild(0)).val+","+
         ((ASTInt) jjtGetChild(1)).val + " " +
	  ((ASTInt) jjtGetChild(2)).val+","+
         ((ASTInt) jjtGetChild(3)).val + " " +
	  ((ASTInt) jjtGetChild(4)).val+","+
         ((ASTInt) jjtGetChild(5)).val + " " +
	  ((ASTInt) jjtGetChild(6)).val+","+
         ((ASTInt) jjtGetChild(7)).val + "\"" +
        " fill=\"none\" stroke=\"black\" stroke-width=\"1\"/>");
  }

}
