0

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?

Community
  • 1
  • 1
Denis
  • 503
  • 8
  • 32
  • Here's a recent [tag:jfreechart] [example](http://stackoverflow.com/a/28519356/230513) using `setMouseWheelEnabled()`. – trashgod Feb 23 '15 at 21:57
  • 1
    You 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

0 Answers0