There's not quite enough information here to answer your question. But we can try after making a couple assumptions.
From what I gather the picture is of the outlet box and the garbage disposal plugs into the top outlet. Presumably the cable exiting at the top of this box is from the supply (or else the disposal would never run). The rest of your question implies that there is a switch box as well so I assume the cable exiting to the right leads to a 2-pole switch? You're trying to understand how to wire this switch such that the top outlet in the outlet box can be switched.
If my understanding of your question is correct then the switch is on a switch loop and the diagram you have posted does not apply. Instead wire as follows. Connect supply black to switch loop black. Re-identify the switch loop white cable as black and connect it to upper outlet hot. Leave the supply white connected to neutral outlet. With the hot tab jumper in place this will get you a switched outlet (both receptacles).
If you wish to switch only the top receptacle break the hot tab on the receptacle and connect supply black to the bottom hot side of the outlet. Use a pigtail since supply black is now feeding the switch loop and the lower receptacle.