开发者

Select points in a ZedGraph graph by dragging the mouse

I would like to select points on my curve by dragging a square with m开发者_JAVA技巧y mouse. Of course I can build this myself, but I was wondering if it can be done easier?


Unfortunately not. You would have to do it by yourself. ZG doesn't provide any more sophisticated tools for interaction.

You would probably need to subscribe for "mouse down" and "mouse up" events, perform the reverse transform of found points and then find all points in range (i.e. by searching inside the Points collection of your curve(s)).

Just remember, that the action you described is by default connected width zooming and you would have to disable it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜