D
Digital Puer
I'm planning to write a graphing application that will draw lines
between plotted points (in a cartesian plane). Once I draw the lines,
how would I be able to click on a drawn line to select it? I would
then allow the user to change the color of the line.
The only way I can think of is to find the point the user clicked and
then see if it fits on the line between any two pairs of points, but
this is highly inefficient and potentially inaccurate.
I looked at JFreeChart, but they evidently don't offer this functionality.
Thanks for any help.
between plotted points (in a cartesian plane). Once I draw the lines,
how would I be able to click on a drawn line to select it? I would
then allow the user to change the color of the line.
The only way I can think of is to find the point the user clicked and
then see if it fits on the line between any two pairs of points, but
this is highly inefficient and potentially inaccurate.
I looked at JFreeChart, but they evidently don't offer this functionality.
Thanks for any help.