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

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

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


/****************************************************
 The correct syntax for the text command is 
 int, int, int, string. These are just the 4 children
 of the node so they are just added to the output.
****************************************************/

public void generate()
  {
    System.out.println
	  ("<text x=\"" + ((ASTInt) jjtGetChild(0)).val +
        "\" y=\"" + ((ASTInt) jjtGetChild(1)).val +
        "\" font-size=\"" + ((ASTInt) jjtGetChild(2)).val +     
        "\" stroke=\"none\" fill=\"black\" stroke-width=\"1\">"
        + ((ASTString) jjtGetChild(3)).val + "</text>" );

  }


}
