Editing possibilities

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Christian

Editing possibilities

Post by Christian » Wed Jan 23, 2002 1:22 pm

Is there a possibility to calculate the plot coordinates of a XYPlot from mouse positions and vice versa?

I'd like to display a "crosshair" at the mouse position. In a textfield the coordinates of the plot (following the crosshair to the horizontal and vertical axis) should be displayed.

In a next step, I'd like to add some editing possibilties, so that you can "create" a XYPlot's dataset with just a few mouse clicks (the complete dataset should be calculated later on by using the given points).

David Gilbert

RE: Editing possibilities

Post by David Gilbert » Wed Jan 23, 2002 1:41 pm

Hi Christian,

I am right now working on integrating some code sent to me by Jonathan Nash that displays crosshairs on charts. Part of that implementation involves a couple of new methods for converting mouse coordinates to data values. Also I'm adding tooltips (several developers have sent me code) at the same time.

I'll release 0.7.1 as soon as it is ready...

Regards,

DG.

Locked