Class AbstractGestureInputEvent

    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractGestureInputEvent​(java.lang.Object source, Key... keys)
      Source constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<Key> getKeys()  
      boolean hasAltKey()
      Determines whether an Alt key was pressed when this event was generated.
      boolean hasControlKey()
      Determines whether a Control key was pressed when this event was generated.
      boolean hasShiftKey()
      Determines whether a Shift key was pressed when this event was generated.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.globalmentor.event.Event

        getSource
    • Constructor Detail

      • AbstractGestureInputEvent

        public AbstractGestureInputEvent​(java.lang.Object source,
                                         Key... keys)
        Source constructor.
        Parameters:
        source - The object on which the event initially occurred.
        keys - The keys that were pressed when this event was generated.
        Throws:
        java.lang.NullPointerException - if the given source and/or keys is null.