Class MouseStationaryHelper


  • public class MouseStationaryHelper
    extends Object
    Helper class for setting up the code that will fire both kinds of MouseStationaryEvent when these events occur.
    • Constructor Detail

      • MouseStationaryHelper

        public MouseStationaryHelper​(Node node)
        Creates a helper class that can install/uninstall the code needed to fire events when the mouse becomes stationary over the given node.
    • Method Detail

      • install

        public void install​(Duration delay)
        Sets up the code to fire a BEGIN event when the mouse becomes stationary over the node and has not moved for the given amount of time (delay), and to fire a END event when the stationary mouse moves again. Note: any previously installed delays will be removed without creating memory leaks.
      • uninstall

        public void uninstall()
        Removes uninstalls the code that would fire BEGIN and END events when the mouse became stationary over this helper's node.