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 TypeMethodDescriptionvoid
chartMouseClicked
(org.jfree.chart.ChartMouseEvent e) void
chartMouseMoved
(org.jfree.chart.ChartMouseEvent e) org.jfree.chart.ChartPanel
Gets the reference to theChartPanel
set as the parent/context.
-
Constructor Details
-
ChartCombinedAxisClickDispatcher
public ChartCombinedAxisClickDispatcher(org.jfree.chart.ChartPanel parent) Constructor.- Parameters:
parent
- The parentChartPanel
containing the combined axis plot- Throws:
NullPointerException
- ifparent
isnull
.
-
-
Method Details
-
getParent
public org.jfree.chart.ChartPanel getParent()Gets the reference to theChartPanel
set as the parent/context.- Returns:
- The parent
ChartPanel
-
chartMouseClicked
public void chartMouseClicked(org.jfree.chart.ChartMouseEvent e) - Specified by:
chartMouseClicked
in interfaceorg.jfree.chart.ChartMouseListener
-
chartMouseMoved
public void chartMouseMoved(org.jfree.chart.ChartMouseEvent e) - Specified by:
chartMouseMoved
in interfaceorg.jfree.chart.ChartMouseListener
-