VR - The visual root node of the UI toolkit used, e.g.
javafx.scene.Node in case of JavaFX.public interface ITool<VR> extends IActivatable, IAdaptable.Bound<IDomain<VR>>
ITool handles a certain aspect of user interaction. It may react
to input mouse, keyboard, and gesture events, as well as to changes to
logical models (adapted to the IViewer), which keep track of
selection, hover, etc.
As an reaction to input events, an ITool may manipulate the
IViewer's logical models, or interact with the IViewer's
IVisualParts via their respective IPolicys.activeadaptableIAdaptable.Bound.Impl<T extends IAdaptable>ACTIVE_PROPERTY| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends IPolicy<VR>> |
getActivePolicies(IViewer<VR> viewer)
Returns an (unmodifiable) list containing the
interaction
policies that are currently active within this tool for the given
IViewer, i.e. the target policies of this tool that get notified
about events within the given IViewer. |
IDomain<VR> |
getDomain()
|
activate, activeProperty, deactivate, isActiveadaptableProperty, getAdaptable, setAdaptablejava.util.List<? extends IPolicy<VR>> getActivePolicies(IViewer<VR> viewer)
interaction
policies that are currently active within this tool for the given
IViewer, i.e. the target policies of this tool that get notified
about events within the given IViewer.viewer - The IViewer for which to return the active policies.interaction
policies that are currently active within this tool.Copyright (c) 2014 itemis AG and others. All rights reserved.