Class NoOpInputHandler

    • Constructor Detail

      • NoOpInputHandler

        public NoOpInputHandler()
    • Method Detail

      • addKeyListener

        public void addKeyListener​(java.awt.event.KeyListener listener)
        Specified by:
        addKeyListener in interface InputHandler
      • removeKeyListener

        public void removeKeyListener​(java.awt.event.KeyListener listener)
        Specified by:
        removeKeyListener in interface InputHandler
      • addMouseListener

        public void addMouseListener​(java.awt.event.MouseListener listener)
        Specified by:
        addMouseListener in interface InputHandler
      • removeMouseListener

        public void removeMouseListener​(java.awt.event.MouseListener listener)
        Specified by:
        removeMouseListener in interface InputHandler
      • addMouseMotionListener

        public void addMouseMotionListener​(java.awt.event.MouseMotionListener listener)
        Specified by:
        addMouseMotionListener in interface InputHandler
      • addMouseWheelListener

        public void addMouseWheelListener​(java.awt.event.MouseWheelListener listener)
        Specified by:
        addMouseWheelListener in interface InputHandler
      • removeMouseWheelListener

        public void removeMouseWheelListener​(java.awt.event.MouseWheelListener listener)
        Specified by:
        removeMouseWheelListener in interface InputHandler
      • isForceRedrawOnMousePressed

        public boolean isForceRedrawOnMousePressed()
        Description copied from interface: InputHandler
        Indicates whether a redraw is forced when the a mouse button is pressed. Touch screen devices require this so that the current position and selection are updated when the button is pressed. The update occurs naturally on non-touch screen devices because the motion of the mouse prior to the press causes the current position and selection to be updated.
        Specified by:
        isForceRedrawOnMousePressed in interface InputHandler
        Returns:
        true if a redraw is forced when a button is pressed, otherwise false.
      • setForceRedrawOnMousePressed

        public void setForceRedrawOnMousePressed​(boolean forceRedrawOnMousePressed)
        Description copied from interface: InputHandler
        Specifies whether a redraw is forced when the a mouse button is pressed. Touch screen devices require this so that the current position and selection are updated when the button is pressed. The update occurs naturally on non-touch screen devices because the motion of the mouse prior to the press causes the current position and selection to be updated.
        Specified by:
        setForceRedrawOnMousePressed in interface InputHandler
        Parameters:
        forceRedrawOnMousePressed - true to force a redraw on button press, otherwise false, the default.