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

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

  public ASTCircle(drawphase1 p, int id) {
    super(p, id);
  }

  /*----------------------------------------------*/
  /*  Returns Circle in an Ellipse form           */
  /*----------------------------------------------*/
  public String getString()
  {
    int width = ((ASTInt) jjtGetChild(2)).val - ((ASTInt) jjtGetChild(0)).val;
    
    return "<ellipse cx=\"" + (((ASTInt) jjtGetChild(0)).val+(width/2)) +
                 "\" cy=\"" + (((ASTInt) jjtGetChild(1)).val+(width/2)) + 
                 "\" rx=\"" + (width/2) + 
                 "\" ry=\"" + (width/2) + "\" fill=\"none\" stroke=\"black\" stroke-width=\"1\"/>";
  }
}
