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

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

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

  public void generate(String itemCol, int brushNo, int offsetX, int offsetY)
  {
	int xl=((ASTInt) jjtGetChild(0)).val;	
	int yt=((ASTInt) jjtGetChild(1)).val;
	int xr=((ASTInt) jjtGetChild(2)).val;

	int rx=(xr-xl)/2;
	int cx=xl+rx;
	int cy=yt+rx;

	  drawEllipse(itemCol, brushNo, offsetX, offsetY, cx, cy, rx, rx);
  }





}
