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

import java.io.*;
public class ASTSquare extends SimpleNode 
{
	public ASTSquare(int id) 
	{
		super(id);
	}

	public ASTSquare(DrawPhase1 p, int id) 
	{
		super(p, id);
	}

	public void generate(FileWriter SVGFile)
    {
        int x1 = ((ASTInt)jjtGetChild(0)).val;
        int x2 = ((ASTInt)jjtGetChild(1)).val;
        int x3 = ((ASTInt)jjtGetChild(2)).val;
        int x4 = x2 + (x3 - x1);
        DrawRectangle(SVGFile, x1, x2, x3, x4);
    }


}
