void animateAnchor(float mouseAngle, int fixAnchor,String timeLabel){
    	 
    	  parent.strokeCap(parent.ROUND);
    	  parent.stroke(anchorColour.getRGB());
          parent.strokeWeight(4);          
          float x1 = (float) (this.x + RADIUS/2*Math.cos(mouseAngle));
          float y1 = (float) (this.y + RADIUS/2*Math.sin(mouseAngle));     
          
          PFont font = parent.createFont("Droid Sans",20,true);
	   	  parent.textFont(font);
	   	  parent.fill(yearLabel.getRGB());
          
	   	  if (fixAnchor==1){
        	  float dist = parent.dist(x1, y1, parent.mouseX, parent.mouseY);
        	  float x2 = (float) (this.x + dist*Math.cos(mouseAngle));
              float y2 = (float) (this.y + dist*Math.sin(mouseAngle));              
        	  parent.line(x1, y1, x2, y2);
        	  parent.text(timeLabel, x2, y2);
          }else{
        	  parent.line(x1, y1, parent.mouseX, parent.mouseY);
        	  parent.text(timeLabel, parent.mouseX, parent.mouseY);
          }   
          
      }