Class NamedKeyManager
java.lang.Object
VASSAL.tools.NamedKeyManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final NamedKeyManagerprotected static final intprotected static final intprotected static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NamedKeyManagergetKeyStroke(String name, KeyStroke ks) Return the generated KeyStroke associated with the nameintReturn the next KeyStroke from the poolstatic booleanReturn true if the supplied KeyStroke is in the range allocated to NamedKeyStrokes
-
Field Details
-
instance
-
NAMED_START
protected static final int NAMED_START- See Also:
-
NAMED_END
protected static final int NAMED_END- See Also:
-
nextNamedKey
protected static int nextNamedKey -
strokes
-
-
Constructor Details
-
NamedKeyManager
public NamedKeyManager()
-
-
Method Details
-
getInstance
-
isNamed
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
-
getNextStroke
public int getNextStroke()Return the next KeyStroke from the pool- Returns:
- KeyStroke Id
-