How to create function/system where character jumps to mouse click/screen touch with available jump arch shown on screen

Basically I want to mimic this

or this is the same thing but backwards (you are pulling back on the character like a slingshot in the opposite direction you want them to go (video)

May this be of help : Drawing a projectile trajectory like Angry Birds using LibGDX