Package org.jfree.chart
Class ChartMouseEvent
java.lang.Object
org.jfree.chart.ChartMouseEvent
public class ChartMouseEvent extends Object
A mouse event for a chart that is displayed in a ChartPanel.
-
Constructor Summary
Constructors Constructor Description ChartMouseEvent(JFreeChart chart, MouseEvent trigger, ChartEntity entity)
Constructs a new event. -
Method Summary
Modifier and Type Method Description JFreeChart
getChart()
Returns the chart that the mouse event relates to.ChartEntity
getEntity()
Returns the chart entity (if any) under the mouse point.MouseEvent
getTrigger()
Returns the mouse event that triggered this event.
-
Constructor Details
-
ChartMouseEvent
Constructs a new event.- Parameters:
chart
- the source chart.trigger
- the mouse event that triggered this event.entity
- the chart entity (if any) under the mouse point.
-
-
Method Details
-
getChart
Returns the chart that the mouse event relates to.- Returns:
- the chart.
-
getTrigger
Returns the mouse event that triggered this event.- Returns:
- the event.
-
getEntity
Returns the chart entity (if any) under the mouse point.- Returns:
- the chart entity.
-