Class ChartMouseEventFX

java.lang.Object
java.util.EventObject
org.jfree.chart.fx.interaction.ChartMouseEventFX
All Implemented Interfaces:
Serializable

public class ChartMouseEventFX
extends EventObject
implements Serializable
A mouse event for a chart that is displayed in a (JavaFX) ChartViewer.
See Also:
ChartMouseListenerFX, Serialized Form
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor Description
    ChartMouseEventFX​(org.jfree.chart.JFreeChart chart, javafx.scene.input.MouseEvent trigger, org.jfree.chart.entity.ChartEntity entity)
    Constructs a new event.
  • Method Summary

    Modifier and Type Method Description
    org.jfree.chart.JFreeChart getChart()
    Returns the chart that the mouse event relates to.
    org.jfree.chart.entity.ChartEntity getEntity()
    Returns the chart entity (if any) under the mouse point.
    javafx.scene.input.MouseEvent getTrigger()
    Returns the mouse event that triggered this event.

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ChartMouseEventFX

      public ChartMouseEventFX​(org.jfree.chart.JFreeChart chart, javafx.scene.input.MouseEvent trigger, org.jfree.chart.entity.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).
  • Method Details

    • getChart

      public org.jfree.chart.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 org.jfree.chart.entity.ChartEntity getEntity()
      Returns the chart entity (if any) under the mouse point.
      Returns:
      The chart entity (possibly null).