Class EventBubblingDispatcher

  • All Implemented Interfaces:
    GuiEventManager, be.yildizgames.module.window.input.WindowInputListener

    public class EventBubblingDispatcher
    extends Object
    implements GuiEventManager
    Author:
    Grégory Van den Borre
    • Constructor Detail

      • EventBubblingDispatcher

        public EventBubblingDispatcher()
    • Method Detail

      • setDebugListener

        public void setDebugListener​(be.yildizgames.common.client.debug.DebugListener l)
        Specified by:
        setDebugListener in interface GuiEventManager
      • keyboardKeyPressed

        public void keyboardKeyPressed​(char character)
        Specified by:
        keyboardKeyPressed in interface be.yildizgames.module.window.input.WindowInputListener
      • specialKeyPressed

        public void specialKeyPressed​(be.yildizgames.module.window.input.Key key)
        Specified by:
        specialKeyPressed in interface be.yildizgames.module.window.input.WindowInputListener
      • keyboardKeyReleased

        public void keyboardKeyReleased​(char keyCode)
        Specified by:
        keyboardKeyReleased in interface be.yildizgames.module.window.input.WindowInputListener
      • specialKeyReleased

        public void specialKeyReleased​(be.yildizgames.module.window.input.Key key)
        Specified by:
        specialKeyReleased in interface be.yildizgames.module.window.input.WindowInputListener
      • mouseLeftReleased

        public void mouseLeftReleased​(be.yildizgames.module.window.input.MousePosition position)
        Specified by:
        mouseLeftReleased in interface be.yildizgames.module.window.input.WindowInputListener
      • mouseRightReleased

        public void mouseRightReleased​(be.yildizgames.module.window.input.MousePosition position)
        Specified by:
        mouseRightReleased in interface be.yildizgames.module.window.input.WindowInputListener
      • mouseLeftClick

        public void mouseLeftClick​(be.yildizgames.module.window.input.MousePosition position)
        Specified by:
        mouseLeftClick in interface be.yildizgames.module.window.input.WindowInputListener
      • mouseRightClick

        public void mouseRightClick​(be.yildizgames.module.window.input.MousePosition position)
        Specified by:
        mouseRightClick in interface be.yildizgames.module.window.input.WindowInputListener
      • mouseDoubleClick

        public void mouseDoubleClick​(be.yildizgames.module.window.input.MousePosition position)
        Specified by:
        mouseDoubleClick in interface be.yildizgames.module.window.input.WindowInputListener
      • mouseDragRight

        public void mouseDragRight​(be.yildizgames.module.window.input.MousePosition position,
                                   be.yildizgames.module.window.input.MousePosition delta)
        Specified by:
        mouseDragRight in interface be.yildizgames.module.window.input.WindowInputListener
      • mouseDragLeft

        public void mouseDragLeft​(be.yildizgames.module.window.input.MousePosition position,
                                  be.yildizgames.module.window.input.MousePosition delta)
        Specified by:
        mouseDragLeft in interface be.yildizgames.module.window.input.WindowInputListener
      • mouseDragWheel

        public void mouseDragWheel​(be.yildizgames.module.window.input.MousePosition position,
                                   be.yildizgames.module.window.input.MousePosition delta)
        Specified by:
        mouseDragWheel in interface be.yildizgames.module.window.input.WindowInputListener
      • mouseMove

        public void mouseMove​(be.yildizgames.module.window.input.MousePosition position)
        Specified by:
        mouseMove in interface be.yildizgames.module.window.input.WindowInputListener
      • mouseWheel

        public void mouseWheel​(be.yildizgames.module.window.input.MousePosition cursorPosition,
                               int count)
        Specified by:
        mouseWheel in interface be.yildizgames.module.window.input.WindowInputListener
      • addView

        public void addView​(View view)
        Description copied from interface: GuiEventManager
        Add a view to the dispatcher and set all listeners list for that view.
        Specified by:
        addView in interface GuiEventManager
        Parameters:
        view - View to add.
      • removeView

        public void removeView​(View view)
        Description copied from interface: GuiEventManager
        Remove a View from the event dispatch.
        Specified by:
        removeView in interface GuiEventManager
        Parameters:
        view - View to remove, it will no longer be affected by mouse and keyboard events.
      • setFocus

        public void setFocus​(View view)
        Description copied from interface: GuiEventManager
        Set the focus on a particular View.
        Specified by:
        setFocus in interface GuiEventManager
        Parameters:
        view - View to set the focus on.