Class HoverOnHoverHandler
java.lang.Object
org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node>>
org.eclipse.gef.mvc.fx.handlers.AbstractHandler
org.eclipse.gef.mvc.fx.handlers.HoverOnHoverHandler
com.amalgamasimulation.graphicaleditor.handlers.HoverOnHoverHandler
- All Implemented Interfaces:
org.eclipse.gef.common.adapt.IAdaptable.Bound<org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node>>,org.eclipse.gef.mvc.fx.handlers.IHandler,org.eclipse.gef.mvc.fx.handlers.IOnHoverHandler
public class HoverOnHoverHandler
extends org.eclipse.gef.mvc.fx.handlers.HoverOnHoverHandler
-
Property Summary
Properties inherited from class org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl
adaptableProperties inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
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> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HoverModelvoidhover(javafx.scene.input.MouseEvent e) voidhoverIntent(javafx.scene.Node hoverIntent) protected booleanisHover(javafx.scene.input.MouseEvent event) Returnstrueif the givenMouseEventshould trigger hover.Methods inherited from class org.eclipse.gef.mvc.fx.handlers.AbstractHandler
commit, execute, getHost, init, isRegistered, isRegisteredForHost, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisualsMethods inherited from class org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl
adaptableProperty, getAdaptable, setAdaptableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperty, getAdaptable, setAdaptableMethods inherited from interface org.eclipse.gef.mvc.fx.handlers.IHandler
getHost
-
Constructor Details
-
HoverOnHoverHandler
public HoverOnHoverHandler()
-
-
Method Details
-
getHoverModel
- Overrides:
getHoverModelin classorg.eclipse.gef.mvc.fx.handlers.HoverOnHoverHandler
-
hover
public void hover(javafx.scene.input.MouseEvent e) - Specified by:
hoverin interfaceorg.eclipse.gef.mvc.fx.handlers.IOnHoverHandler- Overrides:
hoverin classorg.eclipse.gef.mvc.fx.handlers.HoverOnHoverHandler
-
hoverIntent
public void hoverIntent(javafx.scene.Node hoverIntent) - Specified by:
hoverIntentin interfaceorg.eclipse.gef.mvc.fx.handlers.IOnHoverHandler- Overrides:
hoverIntentin classorg.eclipse.gef.mvc.fx.handlers.HoverOnHoverHandler
-
isHover
protected boolean isHover(javafx.scene.input.MouseEvent event) Returnstrueif the givenMouseEventshould trigger hover. Otherwise returnsfalse. Per default, returnstrueif the mouse target is not registered in the visual part map or it is registered for thisHoverOnHoverHandler's host.- Overrides:
isHoverin classorg.eclipse.gef.mvc.fx.handlers.HoverOnHoverHandler- Parameters:
event- TheMouseEventin question.- Returns:
trueto indicate that the givenMouseEventshould trigger hover, otherwisefalse.
-