Package com.luciad.edit.handles
Class EditActionBinder
java.lang.Object
com.luciad.edit.handles.EditActionBinder
- All Implemented Interfaces:
AutoCloseable
This class allows you to specify more options or requirements for actions that can be executed by handles, such as the mouse buttons that users need to click for the action to be executed, or the mouse cursor that is displayed when interacting with the handle.
It is used by the following handle implementations, for example:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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()
modifierKeys
(ModifierKeys modifierKeys) Sets the modifier keys that must be pressed while the click occurs for the action to be performed.mouseButton
(MouseButton mouseButton) Sets the mouse button that must be clicked for the action to be performed.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.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
mouseButton
Sets the mouse button that must be clicked for the action to be performed.By default, this is the left mouse button.
- Parameters:
mouseButton
- the mouse button that must be clicked.- Returns:
- this
-
modifierKeys
Sets the modifier keys that must be pressed while the click occurs for the action to be performed.By default this is set to
ModifierKeys#none
.- Parameters:
modifierKeys
- the modifier keys that must be pressed.- Returns:
- this
-
performOnIntermediateEvents
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.The default is true.
- Parameters:
enable
- whetherIPointEditAction#execute
is also called for intermediate events- Returns:
- this
-
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.By default, no custom cursor is defined.
- Parameters:
cursor
- the mouse cursor to display- Returns:
- this
-