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 SummaryModifier and TypeMethodDescriptionvoidclose()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 voidfinalize()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- 
finalizeprotected void finalize()
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
mouseButtonSets 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
 
- 
modifierKeysSets 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
 
- 
performOnIntermediateEventsSets 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- whether- IPointEditAction#executeis also called for intermediate events
- Returns:
- this
 
- 
cursorSets 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
 
 
-