Class Gesture


  • public class Gesture
    extends java.lang.Object
    Enumerates mouse gestures used to perform navigation actions.
    Since:
    3 Feb 2014
    Author:
    Mark Taylor
    • Constructor Summary

      Constructors 
      Constructor Description
      Gesture​(java.lang.String name, javax.swing.Icon icon, java.lang.String description)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns a description for this gesture.
      javax.swing.Icon getIcon()
      Returns a small icon for this gesture.
      java.lang.String getName()
      Returns a short name for this gesture.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DRAG_1

        public static final Gesture DRAG_1
        Drag using mouse button 1.
      • DRAG_2

        public static final Gesture DRAG_2
        Drag using mouse button 2.
      • DRAG_3

        public static final Gesture DRAG_3
        Drag using mouse button 3.
      • CLICK_1

        public static final Gesture CLICK_1
        Click mouse button 1.
      • CLICK_2

        public static final Gesture CLICK_2
        Click mouse button 2.
      • CLICK_3

        public static final Gesture CLICK_3
        Click mouse button 3.
      • WHEEL

        public static final Gesture WHEEL
        Rotate mouse wheel.
    • Constructor Detail

      • Gesture

        public Gesture​(java.lang.String name,
                       javax.swing.Icon icon,
                       java.lang.String description)
        Constructor.
        Parameters:
        name - gesture name (short)
        icon - small icon (preferably 12 pixels high)
        description - gesture description
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns a short name for this gesture.
        Returns:
        name
      • getIcon

        public javax.swing.Icon getIcon()
        Returns a small icon for this gesture.
        Returns:
        icon
      • getDescription

        public java.lang.String getDescription()
        Returns a description for this gesture.
        Returns:
        description, appropriate for tool tip etc
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object