Since when is the swelling? Any history of trauma, sporting injury, accident or unusual exertion or activity?
Are you on any medications?
This looks like quadriceps strain. This can be because of inadequate exercises and strengthening of the muscle. Your previous injury makes it more vulnerable.
Cold compresses, anti-inflammatory analgesics, knee support, local analgesic spray or ointment, and graduated physical therapy can help you.