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

public class ASTBlock extends SimpleNode 
{
	/*************************************************

					Constructors

	*************************************************/
	
	public ASTBlock(int id) 
	{
    	super(id);
  	}

  	public ASTBlock(drawphase3 p, int id) 
  	{
    	super(p, id);
  	}
  	
  	/*************************************************

	Loops through all the children of the block node
	and prints them to the console

	*************************************************/
  	
  	public void generate()
  	{
    	int i, k = jjtGetNumChildren();

     	for (i = 0; i < k; i++)
        	System.out.println(jjtGetChild(i).generateSVG());
  	}
  	
  	/*************************************************

	Loops the children of the block node to generate the
	SVG code for each by returning a string to the file
	writer

	*************************************************/
  
  	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 required by Node interface

	*************************************************/
  	
  	public int getBrush()
  	{
  		return 0;
  	}
  	
  	public String getColour()
  	{
  		return null;
  	}
  	
  	/*************************************************

	Returns the type of the node

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

  	
  	public String getParentType()
  	{
  		String type = "block";
  		
  		return type;
  	}
  	
  	public int getOffsetX()
  	{
  		return 0;
  	}
  
  	public int getOffsetY()
	{
  		return 0;
  	}
  	
  	public int getScaleX()
  	{
  		return 0;
  	}
  
  	public int getScaleY()
  	{
  		return 0;
  	}
  	
  	public int getRepeatX()
  	{
  		return 0;
  	}
  	
  	public int getRepeatY()
  	{
  		return 0;
  	}
  	
  	public int getNoRepeat()
  	{
  		return 0;
  	}

}
