Interface SelectProvider
public interface SelectProvider
This interface controls a select action.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAimingAllowed
(Widget widget, Point localLocation, boolean invertSelection) Called to check whether aiming is allowedboolean
isSelectionAllowed
(Widget widget, Point localLocation, boolean invertSelection) Called to check whether the selection is allowed.void
Called to perform the selection.
-
Method Details
-
isAimingAllowed
Called to check whether aiming is allowed- Parameters:
widget
- the aimed widgetlocalLocation
- the local location of a mouse cursor while aiming is invoked by an userinvertSelection
- if true, then the invert selection is invoked by an user.- Returns:
- true, if aiming is allowed and widget is set to aimed state while mouse button is pressed; false, if aiming is disallowed and widget is not set to aimed state at any time.
-
isSelectionAllowed
Called to check whether the selection is allowed.- Parameters:
widget
- the selected widgetlocalLocation
- the local location of a mouse cursor while selection is invoked by an userinvertSelection
- if true, then the invert selection is invoked by an user.- Returns:
- true, if selection is allowed; false, if selection is disallowed
-
select
Called to perform the selection.- Parameters:
widget
- the selected widgetlocalLocation
- the local location of a mouse cursor while selection is invoked by an userinvertSelection
- if true, then the invert selection is invoked by an user.
-