public final class EditActionBinder extends Object implements AutoCloseable
It is used by the following handle implementations, for example:
Modifier and Type | Method and Description |
---|---|
void |
close() |
EditActionBinder |
cursor(MouseCursor cursor)
Sets the mouse cursor to display when this handle is highlighted and this action's requirements, such as modifier keys or mouse button clicks, are met.
|
protected void |
finalize() |
EditActionBinder |
modifierKeys(ModifierKeys modifierKeys)
Sets the modifier keys that must be pressed while the click occurs for the action to be performed.
|
EditActionBinder |
mouseButton(MouseButton mouseButton)
Sets the mouse button that must be clicked for the action to be performed.
|
EditActionBinder |
performOnIntermediateEvents(boolean enable)
Sets whether the action is also performed for intermediate events, such as drag updates or mouse moves, and not only at the end of a gesture event sequence.
|
public void close()
close
in interface AutoCloseable
@NotNull public EditActionBinder mouseButton(@NotNull MouseButton mouseButton)
By default, this is the left mouse button.
mouseButton
- the mouse button that must be clicked.@NotNull public EditActionBinder modifierKeys(@NotNull ModifierKeys modifierKeys)
By default this is set to ModifierKeys#none
.
modifierKeys
- the modifier keys that must be pressed.@NotNull public EditActionBinder performOnIntermediateEvents(boolean enable)
The default is true.
enable
- whether IPointEditAction#execute
is also called for intermediate events@NotNull public EditActionBinder cursor(@NotNull MouseCursor cursor)
By default, no custom cursor is defined.
cursor
- the mouse cursor to display