Class HoverBehavior
java.lang.Object
org.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
com.amalgamasimulation.graphicaleditor.behaviors.HoverBehavior
- All Implemented Interfaces:
org.eclipse.gef.common.activate.IActivatable,org.eclipse.gef.common.adapt.IAdaptable.Bound<org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node>>,org.eclipse.gef.mvc.fx.behaviors.IBehavior
public class HoverBehavior
extends org.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
-
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
org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<T extends org.eclipse.gef.common.adapt.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 voidprotected voidprotected org.eclipse.gef.mvc.fx.parts.IFeedbackPartFactorygetFeedbackPartFactory(org.eclipse.gef.mvc.fx.viewer.IViewer viewer) javafx.scene.effect.EffectgetHandleHoverFeedbackEffect(Map<Object, Object> contextMap) Returns theEffectthat is applied toIHandleParts as a replacement forIFeedbackParts which are created for normal parts.protected org.eclipse.gef.mvc.fx.parts.IHandlePartFactorygetHandlePartFactory(org.eclipse.gef.mvc.fx.viewer.IViewer viewer) 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()- Overrides:
doActivatein classorg.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
-
doDeactivate
protected void doDeactivate()- Overrides:
doDeactivatein classorg.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
-
getFeedbackPartFactory
protected org.eclipse.gef.mvc.fx.parts.IFeedbackPartFactory getFeedbackPartFactory(org.eclipse.gef.mvc.fx.viewer.IViewer viewer) - Overrides:
getFeedbackPartFactoryin classorg.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
-
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
protected org.eclipse.gef.mvc.fx.parts.IHandlePartFactory getHandlePartFactory(org.eclipse.gef.mvc.fx.viewer.IViewer viewer) - Overrides:
getHandlePartFactoryin classorg.eclipse.gef.mvc.fx.behaviors.AbstractBehavior
-
getHoverModel
Returns theHoverModelin the context of thehost.- Returns:
- The
HoverModelin the context of thehost.
-