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

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

  public ASTrectangle(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 = jjtGetChild(3).getParam();

    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 + "\"/>");

  }

}
