Component to help implement animation based on onMousePressed and onMouseReleased as entry and exit points respectively.
public PressAnimation(T node,
EventHandler<? super MouseEvent> onPress,
EventHandler<? super MouseEvent> onRelease,
boolean keepOldHandlers)
There are more constructors with different parameters, but all will internally call this first one.
Variations :
keepOldHandlers this value is assumed as true.IComponent<T> component obtain Node from component.getNode().
public PressAnimation(T node,
EventHandler<? super MouseEvent> onPress,
EventHandler<? super MouseEvent> onRelease)
public PressAnimation(IComponent<T> component,
EventHandler<? super MouseEvent> onPress,
EventHandler<? super MouseEvent> onRelease,
boolean keepOldHandlers)
public PressAnimation(IComponent<T> component,
EventHandler<? super MouseEvent> onPress,
EventHandler<? super MouseEvent> onRelease)