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

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

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

  public void getSVG()
  {
      int linewidth = jjtGetParent().getLineWidth();
      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 = xOff + (jjtGetChild(2).getParam()*scaleX);
      int d = yOff + (jjtGetChild(3).getParam()*scaleY);
	int e = xOff + (jjtGetChild(4).getParam()*scaleX);
      int f = yOff + (jjtGetChild(5).getParam()*scaleY);
      for(int k = 0;k<stampNumber;k++)
      {
         System.out.println("<line stroke-width=\"" + linewidth + "\" stroke=\"" + col +"\" x1=\"" + (a +(k*stampX))
             + "\" y1=\"" + (b +(k*stampY)) + "\" x2=\"" + (c+(k*stampX)) + "\" y2=\"" + (d+(k*stampY)) + "\"/>");
         System.out.println("<line stroke-width=\"" + linewidth + "\" stroke=\"" + col +"\" x1=\"" + (c +(k*stampX))
             + "\" y1=\"" + (d +(k*stampY)) + "\" x2=\"" + (e+(k*stampX)) + "\" y2=\"" + (f+(k*stampY)) + "\"/>");
         System.out.println("<line stroke-width=\"" + linewidth + "\" stroke=\"" + col +"\" x1=\"" + (e +(k*stampX))
             + "\" y1=\"" + (f +(k*stampY)) + "\" x2=\"" + (a+(k*stampX)) + "\" y2=\"" + (b+(k*stampY)) + "\"/>");
      }
  }

}
