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

public class ASTText extends SimpleNode {
  String name = "text";
  public ASTText(int id) {
    super(id);
  }

  public ASTText(drawphase2 p, int id) {
    super(p, id);
  }
  
  public String generate(String colour, int brushSize, int offsetX, int offsetY)
  {
  	//Returns text SVG code.
  	String temp;
  	temp = ("<text x=\"" + ((ASTInt)jjtGetChild(0)).val + "\" y=\"" + ((ASTInt)jjtGetChild(1)).val + "\" font-family=\"Verdana\" font-size=\"" + ((ASTInt)jjtGetChild(2)).val + "\" fill=\"" + colour + "\" >" + ((ASTLiteral)jjtGetChild(3)).name + "</text>");
	System.out.println(temp);
	return temp;
  }
  
  public String getName()
  {
     return name;
  }

}
