I need to take value from those (red and blue) lines when mouse will be inside square. Picture below ->
I\'ve created mouseMotionListener
pu