Thanks for posting your query
You had injury over your knee and upper leg, after that there was swelling and it was tender to touch.
You might having either soft tissue injury
or a fracture
You need an x-ray to rule out fracture
So you have to visit an orthopaedic surgeon
for exam of knee and leg and treatment plan acc. to that.