Interface CharBindingMap

  • All Known Implementing Classes:
    DefaultCharBindingMap

    public interface CharBindingMap
    Defines char-to-key binding. The generation of a symbol will, in general, require modifier keys to be pressed prior to pressing a primary key. Classes that implement CharBindingMap communicate what modifiers and primary key are required to generate a given symbol.
    Author:
    Alexandre Iline (alexandre.iline@sun.com)
    See Also:
    DefaultCharBindingMap
    • Method Detail

      • getCharKey

        int getCharKey​(char c)
        Returns the code of the primary key used to type a symbol.
        Parameters:
        c - Symbol code.
        Returns:
        a key code.
        See Also:
        InputEvent
      • getCharModifiers

        int getCharModifiers​(char c)
        Returns the modifiers that should be pressed to type a symbol.
        Parameters:
        c - Symbol code.
        Returns:
        a combination of InputEvent MASK fields.
        See Also:
        InputEvent