VR
- The visual root node of the UI toolkit used, e.g.
javafx.scene.Node in case of JavaFX.public class HoverBehavior<VR> extends AbstractBehavior<VR> implements java.beans.PropertyChangeListener
HoverBehavior
is responsible for creating and removing selection
feedback.pcs
ACTIVE_PROPERTY
Constructor and Description |
---|
HoverBehavior() |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
void |
deactivate() |
protected HoverModel<VR> |
getHoverModel()
Returns the
HoverModel in the context of the host . |
protected void |
onHoverChange(IVisualPart<VR,? extends VR> oldHovered,
IVisualPart<VR,? extends VR> newHovered)
Called when the
HoverModel changes, i.e. a part is unhovered or
hovered. |
void |
propertyChange(java.beans.PropertyChangeEvent event) |
addFeedback, addFeedback, addHandles, addHandles, addPropertyChangeListener, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, removePropertyChangeListener, setAdaptable, switchAdaptableScopes
public void activate()
activate
in interface IActivatable
activate
in class AbstractBehavior<VR>
public void deactivate()
deactivate
in interface IActivatable
deactivate
in class AbstractBehavior<VR>
protected HoverModel<VR> getHoverModel()
HoverModel
in the context of the host
.HoverModel
in the context of the host
.protected void onHoverChange(IVisualPart<VR,? extends VR> oldHovered, IVisualPart<VR,? extends VR> newHovered)
HoverModel
changes, i.e. a part is unhovered or
hovered. Adds/Removes feedback accordingly.oldHovered
- The previously hovered part, or null
.newHovered
- The newly hovered part, or null
.public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
Copyright (c) 2014 itemis AG and others. All rights reserved.