Serializable
, Comparable<MouseCaptureMode>
public enum MouseCaptureMode extends Enum<MouseCaptureMode>
Enum Constant | Description |
---|---|
CLICK |
Mouse clicks are captured on the down-motion but not the up-motion.
|
CLICK_RELEASE |
Mouse clicks are captured both on down and up, this is the normal mode for capturing mouse input.
|
CLICK_RELEASE_DRAG |
Mouse clicks are captured both on down and up and if the mouse if moved while holding down one of the button, a
drag event is generated.
|
CLICK_RELEASE_DRAG_MOVE |
Mouse clicks are captured both on down and up and also all mouse movements, no matter if any button is held down
or not.
|
Modifier and Type | Method | Description |
---|---|---|
static MouseCaptureMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static MouseCaptureMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseCaptureMode CLICK
public static final MouseCaptureMode CLICK_RELEASE
public static final MouseCaptureMode CLICK_RELEASE_DRAG
public static final MouseCaptureMode CLICK_RELEASE_DRAG_MOVE
public static MouseCaptureMode[] values()
for (MouseCaptureMode c : MouseCaptureMode.values()) System.out.println(c);
public static MouseCaptureMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.