Package VASSAL.tools

Class NamedKeyManager

java.lang.Object
VASSAL.tools.NamedKeyManager

public class NamedKeyManager
extends Object
  • Field Details

  • Constructor Details

    • NamedKeyManager

      public NamedKeyManager()
  • Method Details

    • getInstance

      public static NamedKeyManager getInstance()
    • isNamed

      public static boolean isNamed​(KeyStroke k)
      Return true if the supplied KeyStroke is in the range allocated to NamedKeyStrokes
      Parameters:
      k - KeyStroke
      Returns:
      true if this was generated by us
    • getMarkerKeyStroke

      public static KeyStroke getMarkerKeyStroke()
      Return a generic marker KeyStroke
      Returns:
    • getKeyStroke

      public KeyStroke getKeyStroke​(NamedKeyStroke vkey)
      Return the generated KeyStroke associated with the NamedKeyStroke
      Parameters:
      vkey -
      Returns:
      generated KeyStroke
    • getNextStroke

      public int getNextStroke()
      Return the next KeyStroke from the pool
      Returns:
      KeyStroke Id