I edited this program and made building several plots. I want to make zoom on mouse wheel but I dont know how to do it. I know that I need to write my own MouseWheelActionListener
. But how to make new boundaries of x and y axis and repaint my plots?
Asked
Active
Viewed 939 times
0
-
Here's a recent [tag:jfreechart] [example](http://stackoverflow.com/a/28519356/230513) using `setMouseWheelEnabled()`. – trashgod Feb 23 '15 at 21:57
-
1You could simply apply a `scale` to the `Graphics` context, but you'll also need to update the "expected" size of the component to match. Something like [this for example](http://stackoverflow.com/questions/19643637/zoom-using-mouse-and-graphics/19646246#19646246) – MadProgrammer Feb 23 '15 at 23:02