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

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

  public ASTsquare(S p, int id) {
    super(p, id);
  }

  public void getSVG()
  {
    int xleft = jjtGetChild(0).getParam();
    int ytop = jjtGetChild(1).getParam();
    int xright = jjtGetChild(2).getParam();
    int ybottom = (xright-xleft)+ytop;

    System.out.println("<line x1=\"" + xleft + "\" y1=\"" + ytop + "\" x2=\"" + xright + "\" y2=\"" + ytop + "\"/>");
    System.out.println("<line x1=\"" + xright + "\" y1=\"" + ybottom + "\" x2=\"" + xleft + "\" y2=\"" + ybottom+ "\"/>");

    System.out.println("<line x1=\"" + xleft + "\" y1=\"" + ybottom + "\" x2=\"" + xleft + "\" y2=\"" + ytop + "\"/>");
    System.out.println("<line x1=\"" + xright + "\" y1=\"" + ytop + "\" x2=\"" + xright + "\" y2=\"" + ybottom + "\"/>");
  }
}
