SeekEvent

class SeekEvent(source: Any, target: EventTarget, seekRatio: Double) : Event

JavaFX event fired by PlayableWaveformPane when the user commits a seek gesture (mouse release after press or drag). Routes through the standard JavaFX event dispatch chain; consumers attach handlers via addEventHandler(SeekEvent.SEEK) { e -> player.seek(e.seekRatio * totalDurationMs) }.

seekRatio is always clamped to 0.0, 1.0 before the event is constructed. Consumers must multiply by the total duration in the units their player expects (e.g., milliseconds for net.transgressoft.commons.fx.music.player.JavaFxPlayer.seek).

Constructors

Link copied to clipboard
constructor(source: Any, target: EventTarget, seekRatio: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val eventType: EventType<out Event?>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val source: Any?
Link copied to clipboard
open val target: EventTarget?

Functions

Link copied to clipboard
open fun clone(): Any
Link copied to clipboard
open fun consume()
Link copied to clipboard
open fun copyFor(p0: Any?, p1: EventTarget?): Event?