Skip to content

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.

ResourcePlayerNode fires it on the frames where the progress of its playback changed.

ReturnsSignatureSummary
NodeProgressEvent<N>create(N node, double progress, double currentTime) factoryCreates the event for a node, the progress and the current time.

ReturnsSignatureSummary
doublegetProgress()Returns the part of the media played, from 0D at the start to 1D at the end.
doublegetCurrentTime()Returns the position of the playback, in seconds.
Inherited from NodeEvent (1)

getNode

<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.

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.


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

Report a problem with this page