Class DefaultFSMouseListener

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onMouseDragged​(BasicPanel panel, java.awt.event.MouseEvent e)
      Sent when the mouse button is held and the mouse is moved.
      void onMouseOut​(BasicPanel panel, Box box)
      Sent when the mouse leaves a Box in the render tree after entering it.
      void onMouseOver​(BasicPanel panel, Box box)
      Sent when the mouse moves over a Box in the render tree.
      void onMousePressed​(BasicPanel panel, java.awt.event.MouseEvent e)
      Sent when the mouse button is pressed.
      void onMouseUp​(BasicPanel panel, Box box)
      Sent when the mouse button is released while hovering over a Box in the render tree.
      void reset()
      Implementation-dependent.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultFSMouseListener

        public DefaultFSMouseListener()
    • Method Detail

      • onMouseOver

        public void onMouseOver​(BasicPanel panel,
                                Box box)
        Description copied from interface: FSMouseListener
        Sent when the mouse moves over a Box in the render tree.
        Specified by:
        onMouseOver in interface FSMouseListener
        Parameters:
        panel - the panel where the box is displayed
        box - the box the mouse has just moved over
      • onMouseOut

        public void onMouseOut​(BasicPanel panel,
                               Box box)
        Description copied from interface: FSMouseListener
        Sent when the mouse leaves a Box in the render tree after entering it.
        Specified by:
        onMouseOut in interface FSMouseListener
        Parameters:
        panel - the panel where the box is displayed
        box - the box the mouse has just left
      • onMouseUp

        public void onMouseUp​(BasicPanel panel,
                              Box box)
        Description copied from interface: FSMouseListener
        Sent when the mouse button is released while hovering over a Box in the render tree.
        Specified by:
        onMouseUp in interface FSMouseListener
        Parameters:
        panel - the panel where the box is displayed
        box - the box where the mouse is currently located
      • onMousePressed

        public void onMousePressed​(BasicPanel panel,
                                   java.awt.event.MouseEvent e)
        Description copied from interface: FSMouseListener
        Sent when the mouse button is pressed.
        Specified by:
        onMousePressed in interface FSMouseListener
        Parameters:
        panel - the panel where the box is displayed
        e - information about the mouse position, etc.
      • onMouseDragged

        public void onMouseDragged​(BasicPanel panel,
                                   java.awt.event.MouseEvent e)
        Description copied from interface: FSMouseListener
        Sent when the mouse button is held and the mouse is moved.
        Specified by:
        onMouseDragged in interface FSMouseListener
        Parameters:
        panel - the panel where the box is displayed
        e - information about the mouse position, etc.