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

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

  public ASTRectangle(drawphase3 p, int id) {
    super(p, id);
  }

  public String getType()
  {
    return "Rectangle";
  }

  /*-----------------------------------------------*/
  /* Returns rectangle as four lines               */
  /*-----------------------------------------------*/ 
  public String getString()
  {
    String colour = getColour();
    int brush = getBrush();
    int offsetX = getOffsetX();
    int offsetY = getOffsetY();
    int scaleX = getScaleX();
    int scaleY = getScaleY();
    int repeatX = getRepeatX();
    int repeatY = getRepeatY();

    String square = "{\n" + 
    formatLine(((ASTInt) jjtGetChild(0)).val,((ASTInt) jjtGetChild(3)).val,((ASTInt) jjtGetChild(0)).val,((ASTInt) jjtGetChild(1)).val,colour,brush,offsetX,offsetY,scaleX,scaleY,repeatX,repeatY)+"\n"+
    formatLine(((ASTInt) jjtGetChild(0)).val,((ASTInt) jjtGetChild(1)).val,((ASTInt) jjtGetChild(2)).val,((ASTInt) jjtGetChild(1)).val,colour,brush,offsetX,offsetY,scaleX,scaleY,repeatX,repeatY)+"\n"+
    formatLine(((ASTInt) jjtGetChild(2)).val,((ASTInt) jjtGetChild(1)).val,((ASTInt) jjtGetChild(2)).val,((ASTInt) jjtGetChild(3)).val,colour,brush,offsetX,offsetY,scaleX,scaleY,repeatX,repeatY)+"\n"+
    formatLine(((ASTInt) jjtGetChild(2)).val,((ASTInt) jjtGetChild(3)).val,((ASTInt) jjtGetChild(0)).val,((ASTInt) jjtGetChild(3)).val,colour,brush,offsetX,offsetY,scaleX,scaleY,repeatX,repeatY)+
    "\n}";

    return square; 
  }
}
