public class ChartMouseEvent extends java.util.EventObject implements java.io.Serializable
ChartPanel
.ChartMouseListener
,
Serialized FormConstructor and Description |
---|
ChartMouseEvent(JFreeChart chart,
java.awt.event.MouseEvent trigger,
ChartEntity entity)
Constructs a new event.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ChartMouseEvent(JFreeChart chart, java.awt.event.MouseEvent trigger, ChartEntity entity)
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 JFreeChart getChart()
null
).public java.awt.event.MouseEvent getTrigger()
null
).public ChartEntity getEntity()
null
).