NodeProgressEvent
final class NodeProgressEvent<N extends Node>
Extends: NodeEvent<N>
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeProgressEvent.java
The event of onProgress on a resource player, with the progress of the playback.
Description
Section titled “Description”ResourcePlayerNode fires it on the frames where the progress of its playback changed.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
NodeProgressEvent<N> | create(N node, double progress, double currentTime) factory | Creates the event for a node, the progress and the current time. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
double | getProgress() | Returns the part of the media played, from 0D at the start to 1D at the end. |
double | getCurrentTime() | Returns the position of the playback, in seconds. |
Creation details
Section titled “Creation details”create
Section titled “create”<N extends Node> NodeProgressEvent<N> create(N node, double progress, double currentTime) factory
Creates the event for a node, the progress and the current time.
Method details
Section titled “Method details”getProgress
Section titled “getProgress”double getProgress()
Returns the part of the media played, from 0D at the start to 1D at the end.
getCurrentTime
Section titled “getCurrentTime”double getCurrentTime()
Returns the position of the playback, in seconds.
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
