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

public class ASTstate extends SimpleNode {

  

  protected int j, offset, repeat,linewidth = 1,xOff = 0,yOff= 0;

   

  protected String colour = "black";

  

  protected boolean firsttimeY=true, firsttimeX=true,firsttimeWidth=true,firsttimecol=true;

  public ASTstate(int id) {
    super(id);
  }

  public ASTstate(S p, int id) {
    super(p, id);
  }


  public void getSVG()
  {
     j = jjtGetNumChildren();

    
        
    setYOff(1);
    setXOff(1);
    setLineWidth(1); 
    setColour("nocolour");
 
    for(int i=0;i<j;i++)
    {
       jjtGetChild(i).getSVG();
    }    
  }
  
 

  public void setYOff(int i)
  {
     if(firsttimeY)
     {
       yOff = jjtGetParent().getYOff();
       firsttimeY = false;
     }
     else
     {
       yOff = yOff + i;
     }
  }

  public void setXOff(int i)
  {
     if(firsttimeX)
     {
       xOff = jjtGetParent().getXOff();
       firsttimeX = false;
     }
     else
     {
       xOff = xOff + i;
     }
  }

 

  public int getYOff()
  {
    return yOff;
  }
  public int getXOff()
  {
    return xOff;
  }

  public void setLineWidth(int i)
  {
   if(firsttimeWidth)
   {
     linewidth = jjtGetParent().getLineWidth();
     firsttimeWidth = false;
   }
   else
   {
     linewidth = i;
   }
  }

  public int getLineWidth()
  {
    return linewidth;
  }

  public void setColour(String i)
  {
   if(firsttimecol)
   {
     colour = jjtGetParent().getColour();
     firsttimecol = false;
   }
   else
   {
     colour = i;
   }
  }

  public String getColour()
  {
    return colour;
  }
}
