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

public class ASTBrush extends SimpleNode 
{
	int brush;
	
	/*************************************************
	
					Constructors
		
	*************************************************/
	
	public ASTBrush(int id) 
	{
    	super(id);
  	}

  	public ASTBrush(drawphase2 p, int id) 
  	{
    	super(p, id);
  	}
  	
  	/*************************************************
	
	Generates the SVG code for the children of Brush
	via a loop of each of the child nodes
		
	*************************************************/
  	
  	public String generateSVG()
  	{
  		int i, k = jjtGetNumChildren();
  		int test;
  		String temp = "";

     	for (i = 0; i < k; i++)
     	{
        	temp = temp + jjtGetChild(i).generateSVG();
        }
        
        return temp;
  	}
  	
  	/*************************************************
	
	Methods needed for the Node interface
		
	*************************************************/
  	
  	public void generate()
  	{

  	}
   
   	public String getColour()
   	{
  		return null;
  	}
  	
  	/*************************************************
	
	Allows other classes to obtain the value of brush
		
	*************************************************/
  	
  	public int getBrush()
  	{
  		brush = ((ASTInt) jjtGetChild(0)).val;
  		
  		return brush;
  	}
  	
  	/*************************************************
	
	Allows other classes to see what type of parent
	brush is, distingushes brush from colour and offset
		
	*************************************************/
  	
  	
  	public String getParentType()
  	{
  		String type = "brush";
  		
  		return type;
  	}
  	
  	public int getOffsetX()
  	{
  		return 0;
  	}
  
  	public int getOffsetY()
	{
  		return 0;
  	}
}
