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

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

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

  /*----------------------------------------------*/
  /*  Returns Ellipse                             */
  /*----------------------------------------------*/
  public String getString()
  {
    int width = ((ASTInt) jjtGetChild(2)).val - ((ASTInt) jjtGetChild(0)).val;
    int height = ((ASTInt) jjtGetChild(3)).val - ((ASTInt) jjtGetChild(1)).val; 

    return "<ellipse cx=\"" + (((ASTInt) jjtGetChild(0)).val+(width/2)) +
            "\" cy=\"" + (((ASTInt) jjtGetChild(1)).val+(height/2)) + 
            "\" rx=\"" + (width/2) + 
            "\" ry=\"" + (height/2) + "\" fill=\"none\" stroke=\"black\" stroke-width=\"1\"/>";
  }
}
