How do I stop JFreechart from unzooming when I drag left?
thxs.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I made an assumption (based on your short question) that you want to disable the “zoom restore” feature when invoked by the mouse being dragged to the left.
If so, you simply need to override the
restoreAutobounds()method like this:Or, event better is to extend the
ChartPanelobject and override it there.NOTE: the zoom out feature will still be available from the context menu of the chart so the user still has meaningful ways to zoom out