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.
|
pcs
ACTIVE_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 AbstractFXOnScrollPolicy s
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, setAdaptable
public 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 AbstractFXOnScrollPolicy
s
that are installed on the given target IVisualPart
.targetPart
- The target IVisualPart
of which the
AbstractFXOnScrollPolicy
s are returned.Set
containing all AbstractFXOnScrollPolicy
s
that are installed on the given target IVisualPart
.protected void registerListeners()
AbstractTool
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).registerListeners
in class AbstractTool<javafx.scene.Node>
protected void unregisterListeners()
AbstractTool
IDomain
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.