The opportunity cost of a move from point A to point B is D. the decreased production of good Y.
If you move the production chart from A too B, there will be a decrease in the production. The opportunity cost by shifting the lines is giving up the items and decreasing what is actually being produced. The decrease results in an opportunity cost - which is what you give up to gain something else.