Search found 7 matches

by civi
Thu Feb 21, 2008 1:47 am
Forum: JFreeChart
Topic: XYSeries - Coordinate (X,Y)
Replies: 0
Views: 3671

XYSeries - Coordinate (X,Y)

If I have the coordinate (x,y) of a given point, is there any method to check if this point (x,y) belongs to XYSeries (Line) ?

Best Regards

Cividanes
by civi
Wed Feb 20, 2008 2:40 am
Forum: JFreeChart
Topic: Using MouseClick Event on Line Chart Graph
Replies: 1
Views: 4663

for example: public void chartMouseMoved(ChartMouseEvent event) { //put your handling code here to handle mouse movement events ChartEntity entity = event.getEntity(); //the above line will get the entity that is below the mouse. if ((entity instanceof XYItemEntity)) { //now we check what type of en...
by civi
Wed Feb 20, 2008 2:17 am
Forum: JFreeChart
Topic: Using MouseClick Event on Line Chart Graph
Replies: 1
Views: 4663

Using MouseClick Event on Line Chart Graph

I´m working on Line Chart Graph in JApplet. I would like to open a Menu when clicking on a line point of ChartPanel I try the following: class ChartApplet extends JApplet { .... chartPanel.addChartMouseListener(New TestClass()); .... public class TestClass implements ChartMouseListener { public void...
by civi
Mon Feb 18, 2008 2:12 am
Forum: JFreeChart
Topic: Line Chart - MouseEvent
Replies: 6
Views: 11742

ChartMouseEvent: JFreeChart getChart() Returns the chart that the mouse event relates to. ChartEntity getEntity() Returns the chart entity (if any) under the mouse point. java.awt.event.MouseEvent getTrigger() Returns the mouse event that triggered this event. I need to any method for example: getXY...
by civi
Mon Feb 18, 2008 1:58 am
Forum: JFreeChart
Topic: Line Chart - MouseEvent
Replies: 6
Views: 11742

Ok, sorry. but when i implement this method: void chartMouseClicked(ChartMouseEvent event); of interface ChartMouseListener, is have any method of ChartMouseEvent that can I recognize this specific Object XYSerie in CharPanel ? I need to get this object when mouse click event, but just if the point ...
by civi
Sun Feb 17, 2008 10:51 pm
Forum: JFreeChart
Topic: Line Chart - MouseEvent
Replies: 6
Views: 11742

I already added the MouseLister in ChartPanel.

I already can get the cordanate point (x,y) on mouseclick event.

But, now, I need to check if this point is on some specific line (XYSeries Object) on the chartpanel then get and recognize this line (XYSeries).

Thanks
by civi
Sun Feb 17, 2008 7:23 pm
Forum: JFreeChart
Topic: Line Chart - MouseEvent
Replies: 6
Views: 11742

Line Chart - MouseEvent

I´m working on line chart graph using jfreechart in applet. The graph is operationg accordly but I need capture an event using mouseclicked. I need help to developer the following feature: When click on line graph to identify the respective line (Object XYSeries) and to start an event. chart.addMous...