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

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

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

  public String getType()
  {
    return "Circle";
  }

  /*----------------------------------------------*/
  /*  Returns Circle in an Ellipse form           */
  /*----------------------------------------------*/
  public String getString()
  {
    String colour = getColour();
    int offsetX = getOffsetX();
    int offsetY = getOffsetY();
    int brush = getBrush(); 

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