public class FXHoverOnHoverPolicy extends AbstractFXInteractionPolicy implements IFXOnHoverPolicy
FXHoverOnHoverPolicy
is an IFXOnHoverPolicy
that hovers
its host
by altering the HoverModel
when the
host
is hovered by the mouse.adaptable
adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Constructor and Description |
---|
FXHoverOnHoverPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
hover(javafx.scene.input.MouseEvent e)
This callback method is invoked when the mouse hovers the host.
|
protected boolean |
isHover(javafx.scene.input.MouseEvent event)
Returns
true if the given MouseEvent should trigger
hover. |
isRegistered, isRegisteredForHost
commit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisuals
adaptableProperty, getAdaptable, getHost, setAdaptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adaptableProperty, getAdaptable, setAdaptable
public void hover(javafx.scene.input.MouseEvent e)
IFXOnHoverPolicy
hover
in interface IFXOnHoverPolicy
e
- The original MouseEvent
.protected boolean isHover(javafx.scene.input.MouseEvent event)
true
if the given MouseEvent
should trigger
hover. Otherwise returns false
. Per default, returns
true
if the mouse target is not registered in the visual
part map or it is registered for this FXHoverOnHoverPolicy
's
host.event
- The MouseEvent
in question.true
to indicate that the given MouseEvent
should trigger hover, otherwise false
.Copyright (c) 2014 itemis AG and others. All rights reserved.