Package org.eclipse.gef.mvc.fx.behaviors
Class HoverBehavior
java.lang.Object
org.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
org.eclipse.gef.mvc.fx.behaviors.HoverBehavior
- All Implemented Interfaces:
IActivatable,IAdaptable.Bound<IVisualPart<? extends javafx.scene.Node>>,IBehavior
The
HoverBehavior can be registered on an IVisualPart in
order to react to HoverModel changes. It generates
AbstractFeedbackParts and AbstractHandleParts.-
Property Summary
Properties inherited from class org.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
active, adaptable -
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
IAdaptable.Bound.Impl<T extends IAdaptable> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe adapter role for theIFeedbackPartFactorythat is used to generate hover feedback parts.static final StringThe adapter role for theIHandlePartFactorythat is used to generate hover handle parts.Fields inherited from interface org.eclipse.gef.common.activate.IActivatable
ACTIVE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPostAbstractBehavior.activate()hook that may be overwritten to e.g. register listeners.protected voidPreAbstractBehavior.deactivate()hook that may be overwritten to e.g. unregister listeners.protected IFeedbackPartFactorygetFeedbackPartFactory(IViewer viewer) Returns theIFeedbackPartFactorythat should be used for feedback creation.javafx.scene.effect.EffectgetHandleHoverFeedbackEffect(Map<Object, Object> contextMap) Returns theEffectthat is applied toIHandleParts as a replacement forIFeedbackParts which are created for normal parts.protected IHandlePartFactorygetHandlePartFactory(IViewer viewer) Returns theIHandlePartFactorythat should be used for handle creation.protected HoverModelReturns theHoverModelin the context of thehost.Methods inherited from class org.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
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
-
Field Details
-
HOVER_FEEDBACK_PART_FACTORY
The adapter role for theIFeedbackPartFactorythat is used to generate hover feedback parts.- See Also:
-
HOVER_HANDLE_PART_FACTORY
The adapter role for theIHandlePartFactorythat is used to generate hover handle parts.- See Also:
-
-
Constructor Details
-
HoverBehavior
public HoverBehavior()
-
-
Method Details
-
doActivate
protected void doActivate()Description copied from class:AbstractBehaviorPostAbstractBehavior.activate()hook that may be overwritten to e.g. register listeners.- Overrides:
doActivatein classAbstractBehavior
-
doDeactivate
protected void doDeactivate()Description copied from class:AbstractBehaviorPreAbstractBehavior.deactivate()hook that may be overwritten to e.g. unregister listeners.- Overrides:
doDeactivatein classAbstractBehavior
-
getFeedbackPartFactory
Description copied from class:AbstractBehaviorReturns theIFeedbackPartFactorythat should be used for feedback creation.- Overrides:
getFeedbackPartFactoryin classAbstractBehavior- Parameters:
viewer- TheIViewerfor which to determine theIFeedbackPartFactoryfor thisIBehavior.- Returns:
- The
IFeedbackPartFactorythat should be used for feedback creation.
-
getHandleHoverFeedbackEffect
Returns theEffectthat is applied toIHandleParts as a replacement forIFeedbackParts which are created for normal parts.- Parameters:
contextMap- A map with context information that might be needed to identify the concrete creation context.- Returns:
- The
Effectthat is applied toIHandleParts as a replacement forIFeedbackParts which are created for normal parts.
-
getHandlePartFactory
Description copied from class:AbstractBehaviorReturns theIHandlePartFactorythat should be used for handle creation.- Overrides:
getHandlePartFactoryin classAbstractBehavior- Parameters:
viewer- TheIViewerfor which to determine theIHandlePartFactoryfor thisIBehavior.- Returns:
- The
IHandlePartFactorythat should be used for feedback creation.
-
getHoverModel
Returns theHoverModelin the context of thehost.- Returns:
- The
HoverModelin the context of thehost.
-