Class SwipeEvent

  • All Implemented Interfaces:

    public class SwipeEvent
    extends Event
    Represents an event that indicates swipe on a component and provides information about the swipe displacement, duration and direction.
    See Also:
    Serialized Form
    • Constructor Detail

      • SwipeEvent

        public SwipeEvent​(java.lang.String name,
                          Component target,
                          int swipeX,
                          int swipeY,
                          int swipeTime,
                          java.lang.String swipeDir)
    • Method Detail

      • getSwipeX

        public int getSwipeX()
        Returns the horizontal swipe displacement relevant to the component.
      • getSwipeY

        public int getSwipeY()
        Returns the vertical swipe displacement relevant to the component.
      • getSwipeDuration

        public int getSwipeDuration()
        Returns the swipe duration(milliseconds) relevant to the component.
      • getSwipeDirection

        public java.lang.String getSwipeDirection()
        Returns the swipe direction(left/right/up/down) relevant to the component.