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

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

  public ASTcircle(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;

      float radius = ((float)((xright-xleft)/2));
  
      System.out.println("<ellipse cx=\"" + (radius+xleft) + "\" cy=\"" + (radius + ytop)
                   + "\" rx=\"" + radius + "\" ry=\"" + radius + "\"/>"); 
  }

}
