/* 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);
  }

 public void generate(String itemCol, int brushNo, int offsetX, int offsetY)
{
int xleft =((ASTInt) jjtGetChild(0)).val;
int ybottom = ((ASTInt) jjtGetChild(1)).val;
int font = ((ASTInt) jjtGetChild(2)).val;

System.out.println("<text x=\"" + (xleft+offsetX) +
  "\" y=\"" + (ybottom+offsetY) +
  "\" font-size=\"" + font +
  "\" fill=\""+itemCol+
  "\" stroke-width=\""+brushNo+"\" >");
String theString=((ASTString) jjtGetChild(3)).val;
System.out.print(theString.substring(1, theString.length()-1));
System.out.print("</text>");

}

}
