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

/**************************************************************

File				: ASTLine.java
Auther				: M. Spiller
Registration #		: Y0259667
Date				: Thursday 13th november 2003
Unit				: CMP-2A25 Programming - Software Development Techniques
Description			: Line class holding methods to draw lines

**************************************************************/

import java.io.*;

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

	public ASTLine(DrawPhase3 p, int id) 
	{
		super(p, id);
	}

	public void generate(FileWriter SVGFile, int Xsc, int Ysc, 
							int X, int Y, String colour, int brush)
    {
		//obtains values from child
		int x1 = ((ASTInt)jjtGetChild(0)).val;
		int y1 = ((ASTInt)jjtGetChild(1)).val;
		int x2 = ((ASTInt)jjtGetChild(2)).val;
		int y2 = ((ASTInt)jjtGetChild(3)).val;
		//sends values to line draw method
        DrawLine(SVGFile, Xsc, Ysc, X, Y, colour, brush, x1,y1,	x2, y2);
    }
}
