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

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

File				: ASTRectangle.java
Auther				: M. Spiller
Registration #		: Y0259667
Date				: Thursday 13th november 2003
Unit				: CMP-2A25 Programming - Software Development Techniques
Description			: Rectangle class containing rectangle method

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

import java.io.*;

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

	public ASTRectangle(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 point values
		int x1 = ((ASTInt)jjtGetChild(0)).val;
		int y1 = ((ASTInt)jjtGetChild(1)).val;
		int x2 = ((ASTInt)jjtGetChild(2)).val;
		int y2 = ((ASTInt)jjtGetChild(3)).val;
		
		//starts draw method
        DrawRectangle(SVGFile, Xsc, Ysc, X, Y, colour, brush, x1, y1, x2, y2);
    }
}
