/* 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(drawphase3 p, int id) {
    super(p, id);
  }
  
  public String generate(String colour, int brushSize, int offsetX, int offsetY, int scaleH, int scaleV)
  {
  	//Returns the SVG code for text.
  	String temp;
  	temp = ("<text x=\"" + (((ASTInt)jjtGetChild(0)).val + offsetX) + "\" y=\"" + (((ASTInt)jjtGetChild(1)).val + offsetY) + "\" font-size=\"" + ((ASTInt)jjtGetChild(2)).val + "\" fill=\"" + colour + "\" >" + ((ASTLiteral)jjtGetChild(3)).name + "</text>");
	System.out.println(temp);
	return temp;
  }
  
  public String getName()
  {
     return name;
  }

}
