Package com.jfcbuilder.listeners
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 Summary
ConstructorsConstructorDescriptionChartCombinedAxisClickDispatcher(org.jfree.chart.ChartPanel parent) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidchartMouseClicked(org.jfree.chart.ChartMouseEvent e) voidchartMouseMoved(org.jfree.chart.ChartMouseEvent e) org.jfree.chart.ChartPanelGets the reference to theChartPanelset as the parent/context.
-
Constructor Details
-
ChartCombinedAxisClickDispatcher
public ChartCombinedAxisClickDispatcher(org.jfree.chart.ChartPanel parent) Constructor.- Parameters:
parent- The parentChartPanelcontaining the combined axis plot- Throws:
NullPointerException- ifparentisnull.
-
-
Method Details
-
getParent
public org.jfree.chart.ChartPanel getParent()Gets the reference to theChartPanelset as the parent/context.- Returns:
- The parent
ChartPanel
-
chartMouseClicked
public void chartMouseClicked(org.jfree.chart.ChartMouseEvent e) - Specified by:
chartMouseClickedin interfaceorg.jfree.chart.ChartMouseListener
-
chartMouseMoved
public void chartMouseMoved(org.jfree.chart.ChartMouseEvent e) - Specified by:
chartMouseMovedin interfaceorg.jfree.chart.ChartMouseListener
-