Documentation of 'org.jfree.chart.fx.interaction.DispatchHandlerFX' Java class
DispatchHandlerFX
org.jfree.chart.fx.interaction

Class DispatchHandlerFX

  • All Implemented Interfaces:
    MouseHandlerFX


    public class DispatchHandlerFX
    extends AbstractMouseHandlerFX
    Handles mouse move and click events on the ChartCanvas by dispatching ChartMouseEventFX events to listeners that are registered with the ChartCanvas (listeners can also be registered with a ChartViewer control).

    THE API FOR THIS CLASS IS SUBJECT TO CHANGE IN FUTURE RELEASES. This is so that we can incorporate feedback on the (new) JavaFX support in JFreeChart.

    Since:
    1.0.18
    • Constructor Detail

      • DispatchHandlerFX

        public DispatchHandlerFX(java.lang.String id)
        Creates a new instance.
        Parameters:
        id - the id (null not permitted).
    • Method Detail

      • handleMousePressed

        public void handleMousePressed(ChartCanvas canvas,
                                       javafx.scene.input.MouseEvent e)
        Handles a mouse pressed event by recording the location of the mouse pointer (so that later we can check that the click isn't part of a drag).
        Specified by:
        handleMousePressed in interface MouseHandlerFX
        Overrides:
        handleMousePressed in class AbstractMouseHandlerFX
        Parameters:
        canvas - the chart canvas.
        e - the mouse event.
      • handleMouseClicked

        public void handleMouseClicked(ChartCanvas canvas,
                                       javafx.scene.input.MouseEvent e)
        Handles a mouse clicked event by setting the anchor point for the canvas and redrawing the chart (the anchor point is a reference point used by the chart to determine crosshair lines).
        Specified by:
        handleMouseClicked in interface MouseHandlerFX
        Overrides:
        handleMouseClicked in class AbstractMouseHandlerFX
        Parameters:
        canvas - the chart canvas (null not permitted).
        e - the mouse event (null not permitted).

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.