Solved
How to move a curve by mouse movement?
I want to implement a function: after the mouse
click on the curve to be able to drag the curve until the mouse is released
I want to implement a function: after the mouse
click on the curve to be able to drag the curve until the mouse is released
Forgot to mention. In your call to moveTo(x,y) you would ofcourse juse use the current y-coordinate of the graph so that you don't move the graph accidentally in the y axis, but only in the x axis.
And consider relative coordinates and consider edges, so, actually, you would use deltaX - Forget what i said earlier.
graph.moveTo(deltaX, graph.getY());Because deltaX can be negative.
/Martin
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.