Search found 5 matches

by antbegone
Wed May 11, 2011 9:24 pm
Forum: JFreeChart
Topic: XYItemEntity size, tooltips, chartmouseevent
Replies: 0
Views: 3128

XYItemEntity size, tooltips, chartmouseevent

Hi, All, I have a problem: The response to ChartMouseEvent requires ACCURATE position of mouse tip over an XYItemEntity (a Rectangle2D for example). I need the XYItemEntity response to a larger area, say 5 pixels, THe Question: How to increase the response area of XYItemEntity? Thanks XYItemEntity v...
by antbegone
Wed Oct 28, 2009 4:11 pm
Forum: JFreeChart
Topic: How to over write paintComponent and keep chart zoomable?
Replies: 4
Views: 5207

Re: How to over write paintComponent and keep chart zoomable?

Thanks, paradoxoff, I have not got time to try your example. I trust it will work because (1) your analysis is right on the spot, I know I did it in a tricky way and could not find a easy workaround; (2) I saw your other posts that made good sense. I will let you know if it works or bug you again if...
by antbegone
Thu Oct 22, 2009 10:54 pm
Forum: JFreeChart
Topic: How to over write paintComponent and keep chart zoomable?
Replies: 4
Views: 5207

Re: How to over write paintComponent and keep chart zoomable?

Thanks David, I attached a simple example here. I can zoom as long as I do not click (to switch to the dataset B). The paintComponent gets called even if I do not click. if I click even once, the zoom does not work any more. If I can not overwrite paintComponent, what is the best way to achieve 'cli...
by antbegone
Thu Oct 22, 2009 5:12 pm
Forum: JFreeChart
Topic: How to over write paintComponent and keep chart zoomable?
Replies: 4
Views: 5207

How to over write paintComponent and keep chart zoomable?

Hi, Gentlepersons, I need to 'click on the chart to switch drawing a different dataset'. I overwrite paintComponent, and install mouseListener. The click-switch does work. However, I lost zoom capability. Can you help? either what is wrong with the following, or what is the correct way to achieve th...
by antbegone
Thu Aug 06, 2009 9:29 pm
Forum: JFreeChart
Topic: Interaction, getting mouseclicks
Replies: 7
Views: 8140

Re: Interaction, getting mouseclicks

Hi, David and all, I would like to use mouse click to switch plotting 2 datasets. The listener response ok. However, I could not switch to dataset 'A'. How to make this work? Thanks Honglin =========================== import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import...