NodeAnimateEvent
final class NodeAnimateEvent<N extends Node>
Extends: NodeEvent<N>
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeAnimateEvent.java
The event of onAnimate, with the animator of a node and the value it reached on this frame.
Description
Section titled “Description”Node.onAnimate fires on the frames where an animator given to Node.animate changes its value.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
NodeAnimateEvent<N> | create(N node, TweenAnimator animator, float value) factory | Creates the event for a node, one of its animators and the value of that animator. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
float | getValue() | Returns the value of the animator on this frame. |
TweenAnimator | getAnimator() | Returns the TweenAnimator whose value changed. |
Creation details
Section titled “Creation details”create
Section titled “create”<N extends Node> NodeAnimateEvent<N> create(N node, TweenAnimator animator, float value) factory
Creates the event for a node, one of its animators and the value of that animator.
Method details
Section titled “Method details”getValue
Section titled “getValue”float getValue()
Returns the value of the animator on this frame.
getAnimator
Section titled “getAnimator”TweenAnimator getAnimator()
Returns the TweenAnimator whose value changed.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
