Class ChartMouseEvent

java.lang.Object
org.jfree.chart.ChartMouseEvent

public class ChartMouseEvent
extends Object
A mouse event for a chart that is displayed in a ChartPanel.
  • Constructor Details

    • ChartMouseEvent

      public ChartMouseEvent​(JFreeChart chart, MouseEvent trigger, ChartEntity entity)
      Constructs a new event.
      Parameters:
      chart - the source chart.
      trigger - the mouse event that triggered this event.
      entity - the chart entity (if any) under the mouse point.
  • Method Details

    • getChart

      public JFreeChart getChart()
      Returns the chart that the mouse event relates to.
      Returns:
      the chart.
    • getTrigger

      public MouseEvent getTrigger()
      Returns the mouse event that triggered this event.
      Returns:
      the event.
    • getEntity

      public ChartEntity getEntity()
      Returns the chart entity (if any) under the mouse point.
      Returns:
      the chart entity.