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
    • getKeyStroke

      public KeyStroke getKeyStroke(String name, KeyStroke ks)
      Return the generated KeyStroke associated with the name
      Parameters:
      name - NamedKeyStroke name
      Returns:
      generated KeyStroke
    • getNextStroke

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