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

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

File				: ASTText.java
Auther				: M. Spiller
Registration #		: Y0259667
Date				: Thursday 13th november 2003
Unit				: CMP-2A25 Programming - Software Development Techniques
Description			: text class holding method to generate taxt

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

import java.io.*;

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

	public ASTText(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 X Y size and text of object
		int x1 = ((ASTInt)jjtGetChild(0)).val;
		int y1 = ((ASTInt)jjtGetChild(1)).val;
		int x2 = ((ASTInt)jjtGetChild(2)).val;
		String y2 = ((ASTString)jjtGetChild(3)).val;
		//calls draw method with added values
        DrawText(SVGFile, Xsc, Ysc, X, Y, colour, brush, x1, y1, x2, y2);
    }
}
