org.jfree.chart.fx.interaction
Class ChartMouseEventFX
- java.lang.Object
-
- java.util.EventObject
-
- org.jfree.chart.fx.interaction.ChartMouseEventFX
-
- All Implemented Interfaces:
- java.io.Serializable
public class ChartMouseEventFX extends java.util.EventObject implements java.io.SerializableA mouse event for a chart that is displayed in a (JavaFX)ChartViewer.
-
-
Constructor Summary
Constructors Constructor and Description ChartMouseEventFX(JFreeChart chart, javafx.scene.input.MouseEvent trigger, ChartEntity entity)Constructs a new event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description JFreeChartgetChart()Returns the chart that the mouse event relates to.ChartEntitygetEntity()Returns the chart entity (if any) under the mouse point.javafx.scene.input.MouseEventgetTrigger()Returns the mouse event that triggered this event.
-
-
-
Constructor Detail
-
ChartMouseEventFX
public ChartMouseEventFX(JFreeChart chart, javafx.scene.input.MouseEvent trigger, ChartEntity entity)
Constructs a new event.- Parameters:
chart- the source chart (nullnot permitted).trigger- the mouse event that triggered this event (nullnot permitted).entity- the chart entity (if any) under the mouse point (nullpermitted).
-
-
Method Detail
-
getChart
public JFreeChart getChart()
Returns the chart that the mouse event relates to.- Returns:
- The chart (never
null).
-
getTrigger
public javafx.scene.input.MouseEvent getTrigger()
Returns the mouse event that triggered this event.- Returns:
- The event (never
null).
-
getEntity
public ChartEntity getEntity()
Returns the chart entity (if any) under the mouse point.- Returns:
- The chart entity (possibly
null).
-
-
DMelt 3.0 © DataMelt by jWork.ORG