Documentation of 'visad.KeyboardBehavior' Java class
KeyboardBehavior
visad

Interface KeyboardBehavior

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int NO_MASK
      Mask to indicate there are no modifiers for this key.
      static int RESET
      Identifier for function to reset the display to the original projection or last saved projection
      static int TRANSLATE_DOWN
      Identifier for function to translate the display downwards
      static int TRANSLATE_LEFT
      Identifier for function to translate the display to the left
      static int TRANSLATE_RIGHT
      Identifier for function to translate the display to the right
      static int TRANSLATE_UP
      Identifier for function to translate the display upwards
      static int ZOOM_IN
      Identifier for function to zoom in the display
      static int ZOOM_OUT
      Identifier for function to zoom out the display
    • Method Detail

      • mapKeyToFunction

        void mapKeyToFunction(int function,
                              int keycode,
                              int modifiers)
        Maps key represented by keycode & modifiers to the given function. Each function can only have one key/modifier combination assigned to it at a time.
        Parameters:
        function - keyboard function (TRANSLATE_UP, ZOOM_IN, etc)
        keycode - KeyEvent virtual keycodes
        modifiers - InputEvent key mask
        See Also:
        KeyEvent, InputEvent
      • processKeyEvent

        void processKeyEvent(java.awt.event.KeyEvent event)
        Process a key event. Determines whether a meaningful key was pressed. place.
        Parameters:
        event - KeyEvent stimulus
      • execFunction

        void execFunction(int function)
        Executes the given function.
        Parameters:
        function - function to perform (TRANSLATE_UP, ZOOM_IN, etc)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.