Class ChartCombinedAxisClickDispatcher

java.lang.Object
com.jfcbuilder.listeners.ChartCombinedAxisClickDispatcher
All Implemented Interfaces:
EventListener, org.jfree.chart.ChartMouseListener

public class ChartCombinedAxisClickDispatcher extends Object implements org.jfree.chart.ChartMouseListener
Specialized ChartMouseListener implementation that handles clicks on a ChartPanel and double-dispatches click handling to every combined axis sub-plot it contains.

Originally created to support synchronizing crosshairs on combined axis sub-plots but could be used for other purposes.

  • Constructor Details

    • ChartCombinedAxisClickDispatcher

      public ChartCombinedAxisClickDispatcher(org.jfree.chart.ChartPanel parent)
      Constructor.
      Parameters:
      parent - The parent ChartPanel containing the combined axis plot
      Throws:
      NullPointerException - if parent is null.
  • Method Details

    • getParent

      public org.jfree.chart.ChartPanel getParent()
      Gets the reference to the ChartPanel set as the parent/context.
      Returns:
      The parent ChartPanel
    • chartMouseClicked

      public void chartMouseClicked(org.jfree.chart.ChartMouseEvent e)
      Specified by:
      chartMouseClicked in interface org.jfree.chart.ChartMouseListener
    • chartMouseMoved

      public void chartMouseMoved(org.jfree.chart.ChartMouseEvent e)
      Specified by:
      chartMouseMoved in interface org.jfree.chart.ChartMouseListener