bibliothek.gui.dock.control
Interface ModifierMask
- All Known Implementing Classes:
- SimpleModifierMask
public interface ModifierMask
A ModifierMask
represents a pattern that tells what modifier keys
are currently pressed. Modifier keys are keys like ctrl, shift or alt.
This interface will be used to check the result of InputEvent.getModifiersEx()
.
- Author:
- Benjamin Sigg
Method Summary |
boolean |
matches(int modifiers)
Tells whether this ModifierMask relates to modifiers
or not. |
matches
boolean matches(int modifiers)
- Tells whether this
ModifierMask
relates to modifiers
or not. The modifiers
have the same form as
InputEvent.getModifiersEx()
would have.
- Parameters:
modifiers
- the modifiers from an InputEvent
- Returns:
true
if this mask matches the modifiers