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

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

  public ASTElipse(drawsimple p, int id) {
    super(p, id);
  }
  
  public void generate()
  {
     int c1 = ((ASTInt) jjtGetChild(0)).val;
     int c2 = ((ASTInt) jjtGetChild(1)).val;
     int c3 = ((ASTInt) jjtGetChild(2)).val;
     int c4 = ((ASTInt) jjtGetChild(3)).val;
     
     System.out.println("<elipse cx=\"" + ((c1 + (c3 - c12))/2) +
        "\" cy=\"" + ((c2 + (c4 - c2))/2) +
        "\" rx=\"" + ((c3 - c1)/2) +
        "\" ry=\"" + ((c4 - c2)/2) +
        "\" stroke=\"black\" stroke-width=\"1\"/>"); 
  }

}
