public class

ChartMouseEvent

extends EventObject
implements Serializable
java.lang.Object
   ↳ java.util.EventObject
     ↳ org.jfree.chart.ChartMouseEvent

Class Overview

A mouse event for a chart that is displayed in a ChartPanel.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
ChartMouseEvent(JFreeChart chart, MouseEvent trigger, ChartEntity entity)
Constructs a new event.
Public Methods
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.
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public ChartMouseEvent (JFreeChart chart, MouseEvent trigger, ChartEntity entity)

Constructs a new event.

Parameters
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).

Public Methods

public JFreeChart getChart ()

Returns the chart that the mouse event relates to.

Returns
  • The chart (never null).

public ChartEntity getEntity ()

Returns the chart entity (if any) under the mouse point.

Returns
  • The chart entity (possibly null).

public MouseEvent getTrigger ()

Returns the mouse event that triggered this event.

Returns
  • The event (never null).