I want to know that can mouse click event detects colors or even strings.
For instance I have drawn yellow filled oval on screen and I want that if mouse clicked on that color, it will cause specific event to occur. Likewise I may have other different drawings on screen and i want different event occur for different colors.
Would it be possible in Java graphics?
You can do it as;
pseudo code:
Detecting strings from an image is whole anoher subject. You need to search into “character/text recognition” in computer vision field. There are off the shelf libraries doing that.