Changes in zoom behaviour and crosshair behaviour

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Jan
Posts: 4
Joined: Tue Sep 13, 2005 12:22 pm

Changes in zoom behaviour and crosshair behaviour

Post by Jan » Tue Oct 11, 2005 3:07 pm

Hi,

I needed to make some changes to ChartPanel and XYplot to get features a customer of ours needs and wanted to ask if these are of general interest to anyone else.
  • a) we wanted to be able to select the zoom in area starting from any starting point, not only the top left corner. The code change allows for a user to zoom in by pressing the left button and making a selection in any direction he wants to. Unzooming is handled through dragging with the right mouse button pressed. Popup menus are shown on right click whithout dragging. Changes made concern ChartPanel only.
  • b) we wanted to use the crosshair on both axis a kind of "zero" marker within the coordinate plane because we wanted something to help the user orientate within the plot. Therefore we needed to be able to fix the crosshair in place, regardless of where the user clicks. This behaviour can be set via a flag introduced in XYPlot, that default to false (old behaviour).
Before posting any length of code, I wanted to ask whether some of this is of interest to someone else...

P.S. I will be away for the next couple of days so don't be impatient if I reply on monday

Achim

Proposed changes

Post by Achim » Mon Oct 17, 2005 3:18 pm

I could use some of that functionality, especially the zoom behaviour is interesting to me.

vani_hegde
Posts: 17
Joined: Tue Oct 11, 2005 9:27 pm

Post by vani_hegde » Fri Oct 21, 2005 12:45 am

I am interested in the cross hair behaviour. Can u please post the code?
thanks

Harry Plotter ;-)
Posts: 12
Joined: Thu Aug 04, 2005 2:56 pm
Location: Oldenburg - Germany

Post by Harry Plotter ;-) » Fri Oct 21, 2005 9:44 pm

I'm also interested in that code can you post it?

Regards,
Peter

Locked