org.jfree.chart
Class ChartMouseEvent
EventObjectorg.jfree.chart.ChartMouseEvent
- Serializable
extends EventObject
implements Serializable
A mouse event for a chart that is displayed in a
ChartPanel.
ChartMouseEvent
public ChartMouseEvent(JFreeChart chart,
MouseEvent trigger,
ChartEntity entity) Constructs a new event.
chart - the source chart (null not permitted).trigger - the mouse event that triggered this event
(null not permitted).entity - the chart entity (if any) under the mouse point
(null permitted).
getEntity
public ChartEntity getEntity()
Returns the chart entity (if any) under the mouse point.
- The chart entity (possibly
null).
getTrigger
public MouseEvent getTrigger()
Returns the mouse event that triggered this event.