XYItemEntity size, tooltips, chartmouseevent

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
antbegone
Posts: 5
Joined: Thu Aug 06, 2009 9:22 pm
antibot: No, of course not.

XYItemEntity size, tooltips, chartmouseevent

Post by antbegone » Wed May 11, 2011 9:24 pm

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

Code: Select all

XYItemEntity v = (XYItemEntity)ent;
int id = v.getSeriesIndex();
int it = v.getItem();	   						
String info = getInfo(dataset, id, it);

Locked