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

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

File				: ASTColour.java
Auther				: M. Spiller
Registration #		: Y0259667
Date				: Thursday 13th november 2003
Unit				: CMP-2A25 Programming - Software Development Techniques
Description			: Colour class to set new colour

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

import java.io.*;

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

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

    public void generate(FileWriter SVGFile, int Xsc, int Ysc, 
							int X, int Y, String colour, int brush)
    {
		//sets new generate values with added new colour
        jjtGetChild(1).generate(SVGFile, Xsc, Ysc, X, Y, 
		((ASTColourName)jjtGetChild(0)).val, brush);
    }

}
