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

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

  public ASTellipse(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 = jjtGetChild(3).getParam();

    	float xradius = (float)((xright - xleft)/2);
    	float yradius = (float)((ybottom - ytop)/2);

    	System.out.println("<ellipse cx=\"" + (xradius+xleft) + "\" cy=\"" + (yradius+ytop)
              + "\" rx=\"" + xradius + "\" ry=\"" + yradius + "\"/>");
  
  }
}
