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

public class ASTtext extends SimpleNode {
  protected String str;
  
  public ASTtext(int id) {
    super(id);
  }

  public ASTtext(S p, int id) {
    super(p, id);
  }

  public void getSVG()
  { 
    String col = jjtGetParent().getColour();
    int stampNumber = jjtGetParent().getStampNumber();
    int xOff = jjtGetParent().getXOff();
    int yOff = jjtGetParent().getYOff();
    int scaleX = jjtGetParent().getScaleX();
    int scaleY = jjtGetParent().getScaleY();
    int stampX = scaleX * jjtGetParent().getStampX();
    int stampY = scaleY * jjtGetParent().getStampY();
    int a = xOff + (jjtGetChild(0).getParam()*scaleX);
    int b = yOff + (jjtGetChild(1).getParam()*scaleY);

  

    int c = scaleX * jjtGetChild(2).getParam();
    for(int k = 0;k<stampNumber;k++)
    {
      System.out.println("<text stroke=\"none\" fill=\"" + col +"\" x=\"" + (a+(k*stampX)) + "\" y=\"" + (b+(k*stampY)) + "\" font-size=\"" + c 
                        + "\">" + str + "</text>");
    }
  }

}
