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

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

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

  

  public void getSVG()
  {
      int linewidth = jjtGetParent().getLineWidth();
      String col = jjtGetParent().getColour();
	int stampNumber = jjtGetParent().getStampNumber();
      int scaleX = jjtGetParent().getScaleX();
      int scaleY = jjtGetParent().getScaleY();
      int stampX = scaleX * jjtGetParent().getStampX();
	int stampY = scaleY * jjtGetParent().getStampY();
      int xOff = jjtGetParent().getXOff();
      int yOff = jjtGetParent().getYOff();
      int x1 = xOff + (jjtGetChild(0).getParam()* scaleX);
      int y1 = yOff + (jjtGetChild(1).getParam()* scaleY);
	int x2 = xOff + (jjtGetChild(2).getParam()* scaleX);
      int y2 = yOff + (jjtGetChild(3).getParam()* scaleY);

   
      for(int k = 0;k<stampNumber;k++)
      { 
      	System.out.println("<line stroke=\"" + col +"\" stroke-width=\"" + linewidth + "\" x1=\"" + (x1+(k*stampX)) + "\" y1=\"" + (y1+(k*stampY)) + "\" x2=\"" 
                             + (x2+(k*stampX)) + "\" y2=\"" + (y2+(k*stampY)) + "\"/>");
	}
}
}