Package uk.ac.starlink.ttools.plot2
Class Gesture
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.Gesture
-
public class Gesture extends java.lang.Object
Enumerates mouse gestures used to perform navigation actions.- Since:
- 3 Feb 2014
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static Gesture
CLICK_1
Click mouse button 1.static Gesture
CLICK_2
Click mouse button 2.static Gesture
CLICK_3
Click mouse button 3.static Gesture
DRAG_1
Drag using mouse button 1.static Gesture
DRAG_2
Drag using mouse button 2.static Gesture
DRAG_3
Drag using mouse button 3.static Gesture
WHEEL
Rotate mouse wheel.
-
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()
-
-
-
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.
-
-
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 classjava.lang.Object
-
-