Processing and leapmotion

Dear

I want to attach leap motion to my code and replace the function of mouse with the leap ,however I couldn’t.May I kindly ask you to help me
This is my code without leap motion:

google drive link :
my problem through leap motion