public void addFormula(LinkedList expression, LinkedList<IntervalBtn> intButtons) throws CloneNotSupportedException
	{
		
		//Agregamos la fórmula
		formulas.add(expression);
		
		//Generamos y agregamos los botones, además de dibujarlos.
		LinkedList<IntervalBtn> newIntBtnList = new LinkedList<IntervalBtn>();
		if(formulaY==0)
		{
			for(IntervalBtn intBtn: intButtons)
			{
				IntervalBtn newIntBtn = intBtn.clone();
				newIntBtnList.add(newIntBtn);
				this.add(newIntBtn);
				
			}
			if(!intButtons.isEmpty())
			{
				formulaY = intButtons.getLast().getY()+10;
			}
		}
		else
		{
			for(IntervalBtn intBtn: intButtons)
			{
				IntervalBtn newIntBtn = intBtn.clone();
				newIntBtn.setBounds(newIntBtn.getX(), newIntBtn.getY()+formulaY, newIntBtn.getWidth(), newIntBtn.getHeight());
				newIntBtnList.add(newIntBtn);
				this.add(newIntBtn);
			}
			if(!intButtons.isEmpty())
			{
				formulaY = intButtons.getLast().getY();
			}
		}
		
		formulaBtns.add(newIntBtnList);
		
		this.getGraphics().setColor(Color.BLACK);
		this.getGraphics().drawLine(0, formulaY-5, this.getWidth(), formulaY-5);
		
		/*
		 * Si ya fue agregada una fórmula, generamos una relación a partir
		 * de las posiciones.
		 * ESTO ES TEMPORAL PARA VER QUE FUNCIONE LA COMBINACIÓN
		 */
		if(formulaBtns.size()>1)
		{
			IntervalBtn prevFirst = formulaBtns.get(formulaBtns.size()-2).getFirst();
			IntervalBtn prevLast = formulaBtns.get(formulaBtns.size()-2).getLast();
			IntervalBtn thisFirst = newIntBtnList.getFirst();
			IntervalBtn thisLast = newIntBtnList.getLast();
			
			RelationDescription relDesc = null;
			
			if(thisFirst.getX()>prevLast.getX()+prevLast.getWidth())
			{
				//Before
				double separation = (thisFirst.getX()-(prevLast.getX()+prevLast.getWidth()))*(App.currentDistance/20);
				relDesc = new RelationDescription(0.0, separation, "Before");
			}
			else if(prevFirst.getX()>thisLast.getX()+thisLast.getWidth())
			{
				//After
				double separation = (prevFirst.getX()-(thisLast.getX()+thisLast.getWidth()))*(App.currentDistance/20);
				relDesc = new RelationDescription(0.0, separation, "After");
			}
			else
			{
				//Overlaps
				relDesc = new RelationDescription("Overlaps");
			}
			formulaRelations.add(relDesc);
			
		}
		
	}