public class HoverBehavior extends AbstractBehavior
HoverBehavior
can be registered on an IVisualPart
in
order to react to HoverModel
changes. It generates
AbstractFeedbackPart
s and AbstractHandlePart
s.active, adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HOVER_FEEDBACK_PART_FACTORY
The adapter role for the
IFeedbackPartFactory that is used to
generate hover feedback parts. |
static java.lang.String |
HOVER_HANDLE_PART_FACTORY
The adapter role for the
IHandlePartFactory that is used to
generate hover handle parts. |
ACTIVE_PROPERTY
Constructor and Description |
---|
HoverBehavior() |
Modifier and Type | Method and Description |
---|---|
protected void |
doActivate()
Post
AbstractBehavior.activate() hook that may be overwritten to e.g. register
listeners. |
protected void |
doDeactivate()
Pre
AbstractBehavior.deactivate() hook that may be overwritten to e.g. unregister
listeners. |
protected IFeedbackPartFactory |
getFeedbackPartFactory(IViewer viewer)
Returns the
IFeedbackPartFactory that should be used for feedback
creation. |
javafx.scene.effect.Effect |
getHandleHoverFeedbackEffect(java.util.Map<java.lang.Object,java.lang.Object> contextMap)
Returns the
Effect that is applied to IHandlePart s as a
replacement for IFeedbackPart s which are created for normal
parts. |
protected IHandlePartFactory |
getHandlePartFactory(IViewer viewer)
Returns the
IHandlePartFactory that should be used for handle
creation. |
protected HoverModel |
getHoverModel()
Returns the
HoverModel in the context of the host . |
activate, activeProperty, adaptableProperty, addAnchoreds, addAnchoreds, addFeedback, addFeedback, addHandles, addHandles, clearFeedback, clearHandles, deactivate, getAdaptable, getFeedback, getFeedback, getFeedbackPartFactory, getFeedbackPerTargetSet, getHandlePartFactory, getHandles, getHandles, getHandlesPerTargetSet, getHost, hasFeedback, hasFeedback, hasHandles, hasHandles, isActive, removeAnchoreds, removeFeedback, removeFeedback, removeFeedback, removeHandles, removeHandles, removeHandles, setAdaptable, updateHandles, updateHandles
public static final java.lang.String HOVER_FEEDBACK_PART_FACTORY
IFeedbackPartFactory
that is used to
generate hover feedback parts.public static final java.lang.String HOVER_HANDLE_PART_FACTORY
IHandlePartFactory
that is used to
generate hover handle parts.protected void doActivate()
AbstractBehavior
AbstractBehavior.activate()
hook that may be overwritten to e.g. register
listeners.doActivate
in class AbstractBehavior
protected void doDeactivate()
AbstractBehavior
AbstractBehavior.deactivate()
hook that may be overwritten to e.g. unregister
listeners.doDeactivate
in class AbstractBehavior
protected IFeedbackPartFactory getFeedbackPartFactory(IViewer viewer)
AbstractBehavior
IFeedbackPartFactory
that should be used for feedback
creation.getFeedbackPartFactory
in class AbstractBehavior
viewer
- The IViewer
for which to determine the
IFeedbackPartFactory
for this IBehavior
.IFeedbackPartFactory
that should be used for feedback
creation.public javafx.scene.effect.Effect getHandleHoverFeedbackEffect(java.util.Map<java.lang.Object,java.lang.Object> contextMap)
Effect
that is applied to IHandlePart
s as a
replacement for IFeedbackPart
s which are created for normal
parts.contextMap
- A map with context information that might be needed to
identify the concrete creation context.Effect
that is applied to IHandlePart
s as a
replacement for IFeedbackPart
s which are created for
normal parts.protected IHandlePartFactory getHandlePartFactory(IViewer viewer)
AbstractBehavior
IHandlePartFactory
that should be used for handle
creation.getHandlePartFactory
in class AbstractBehavior
viewer
- The IViewer
for which to determine the
IHandlePartFactory
for this IBehavior
.IHandlePartFactory
that should be used for feedback
creation.protected HoverModel getHoverModel()
HoverModel
in the context of the host
.HoverModel
in the context of the host
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.