public class FXScrollTool extends AbstractTool<javafx.scene.Node>
FXScrollTool is an AbstractTool that handles mouse scroll
events.| Modifier and Type | Field and Description |
|---|---|
static java.lang.Class<AbstractFXOnScrollPolicy> |
TOOL_POLICY_KEY
The type of the policy that has to be supported by target parts.
|
pcsACTIVE_PROPERTY| Constructor and Description |
|---|
FXScrollTool() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<? extends AbstractFXOnScrollPolicy> |
getScrollPolicies(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> targetPart)
Returns a
Set containing all AbstractFXOnScrollPolicys
that are installed on the given target IVisualPart. |
protected void |
registerListeners()
This method is called when a valid
IDomain is attached to this
tool so that you can register event listeners for various inputs
(keyboard, mouse) or model changes (selection, scroll offset / viewport). |
protected void |
unregisterListeners()
This method is called when the attached
IDomain is reset to
null so that you can unregister previously registered event
listeners. |
activate, addPropertyChangeListener, deactivate, getAdaptable, getDomain, isActive, removePropertyChangeListener, setAdaptablepublic static final java.lang.Class<AbstractFXOnScrollPolicy> TOOL_POLICY_KEY
protected java.util.Set<? extends AbstractFXOnScrollPolicy> getScrollPolicies(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> targetPart)
Set containing all AbstractFXOnScrollPolicys
that are installed on the given target IVisualPart.targetPart - The target IVisualPart of which the
AbstractFXOnScrollPolicys are returned.Set containing all AbstractFXOnScrollPolicys
that are installed on the given target IVisualPart.protected void registerListeners()
AbstractToolIDomain is attached to this
tool so that you can register event listeners for various inputs
(keyboard, mouse) or model changes (selection, scroll offset / viewport).registerListeners in class AbstractTool<javafx.scene.Node>protected void unregisterListeners()
AbstractToolIDomain is reset to
null so that you can unregister previously registered event
listeners.unregisterListeners in class AbstractTool<javafx.scene.Node>Copyright (c) 2014 itemis AG and others. All rights reserved.