Results 1 to 2 of 2
- 08-10-2011, 04:10 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 2
- Rep Power
- 0
[jFreeChart] Converting screen-points to points, which are relative to the axis
Hello,
I'm playing a bit around with jFreeChart. What I would like to do is, to klick onto the graph and get the coordinates (within the graph), which i klicked on.
I found the method mouseClicked(MouseEvent e) within the ChartPanel Class.
e.getX() gives me a number relative to the window.
Now i searched around and tried many ways to, from there, get the coordinates i clicked on. Anyways, I was not able to find a method which suited that propose.
There exists a method called translateScreenToJava2D(Point p), which sounds just like what I'm saerching for, but it does not return the wished value.
Do you have a suggestion for me, which way I could use?
Thanks,
fyaxic
- 08-11-2011, 10:46 AM #2
Member
- Join Date
- Aug 2011
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
ReScaling of Log axis using JFreeChart
By The Vicky in forum AWT / SwingReplies: 1Last Post: 03-22-2011, 07:17 AM -
Java Points help
By Jcbconway in forum Advanced JavaReplies: 30Last Post: 10-27-2010, 12:25 AM -
Drawing 2D multi axis graph with option to get the coordinates of 2 points (user sel)
By saachin2005 in forum New To JavaReplies: 5Last Post: 10-01-2010, 09:26 PM -
How to Customize Jfreechart value axis?
By neeraj.singh in forum AWT / SwingReplies: 0Last Post: 02-16-2009, 08:57 AM -
given number of points(cordinates) , find max points lie on the same line ?
By Hayzam in forum New To JavaReplies: 2Last Post: 08-24-2008, 12:30 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks