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

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

  public ASTRectangle(drawsimple p, int id) {
    super(p, id);
  }

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

}
