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

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

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

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