/* 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 xOff = jjtGetParent().getXOff();
      int yOff = jjtGetParent().getYOff();
      int a = xOff + jjtGetChild(0).getParam();
      int b = yOff + jjtGetChild(1).getParam();
	int c = xOff + jjtGetChild(2).getParam();
      int d = yOff + jjtGetChild(3).getParam();
	int e = xOff + jjtGetChild(4).getParam();
      int f = yOff + jjtGetChild(5).getParam();

      System.out.println("<line stroke-width=\"" + linewidth + "\" stroke=\"" + col +"\" x1=\"" + a + "\" y1=\"" + b + "\" x2=\"" + c + "\" y2=\"" + d + "\"/>");
      System.out.println("<line stroke-width=\"" + linewidth + "\" stroke=\"" + col +"\" x1=\"" + c + "\" y1=\"" + d + "\" x2=\"" + e + "\" y2=\"" + f + "\"/>");
      System.out.println("<line stroke-width=\"" + linewidth + "\" stroke=\"" + col +"\" x1=\"" + e + "\" y1=\"" + f + "\" x2=\"" + a + "\" y2=\"" + b + "\"/>");
      
  }

}
