Enum MouseTracking.Protocol
- All Implemented Interfaces:
Serializable, Comparable<MouseTracking.Protocol>
- Enclosing class:
MouseTracking
Mouse tracking protocol — controls which events are reported.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny-event tracking: press + release + drag + hover.Button-event tracking: press + release + drag.Normal tracking: press + release.X10 compatibility mode: button press only. -
Method Summary
Modifier and TypeMethodDescriptionstatic MouseTracking.ProtocolReturns the enum constant of this type with the specified name.static MouseTracking.Protocol[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
X10
X10 compatibility mode: button press only. -
NORMAL
Normal tracking: press + release. -
BUTTON_MOTION
Button-event tracking: press + release + drag. -
ANY_MOTION
Any-event tracking: press + release + drag + hover.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-