Package io.github.sosuisen.jfxbuilder.media
package io.github.sosuisen.jfxbuilder.media
JavaFX Builder API for Media Module.
This package contains builder classes for JavaFX media components, enabling declarative and hierarchical UI construction with strongly-typed APIs.
The builder classes in this package provide a fluent interface for creating and configuring JavaFX media-related components such as MediaPlayer, MediaView, AudioClip, and other multimedia elements.
Example usage:
MediaView mediaView = MediaViewBuilder.create()
.mediaPlayer(MediaPlayerBuilder.create(
new Media("https://xxxx/xxx.mp4"))
.autoPlay(true)
.build())
.fitWidth(640)
.fitHeight(480)
.preserveRatio(true)
.build();
-
ClassesClassDescriptionThe
AudioClipBuilder
class constructs instances of theAudioClip
class and offers a fluent interface for creating and configuring it.TheAudioEqualizerBuilder
class constructs instances of theAudioEqualizer
class and offers a fluent interface for creating and configuring it.TheAudioTrackBuilder
class constructs instances of theAudioTrack
class and offers a fluent interface for creating and configuring it.TheEqualizerBandBuilder
class constructs instances of theEqualizerBand
class and offers a fluent interface for creating and configuring it.TheMediaBuilder
class constructs instances of theMedia
class and offers a fluent interface for creating and configuring it.TheMediaErrorEventBuilder
class constructs instances of theMediaErrorEvent
class and offers a fluent interface for creating and configuring it.TheMediaExceptionBuilder
class constructs instances of theMediaException
class and offers a fluent interface for creating and configuring it.TheMediaExceptionTypeBuilder
class constructs instances of theType
class and offers a fluent interface for creating and configuring it.TheMediaMarkerEventBuilder
class constructs instances of theMediaMarkerEvent
class and offers a fluent interface for creating and configuring it.TheMediaPlayerBuilder
class constructs instances of theMediaPlayer
class and offers a fluent interface for creating and configuring it.TheMediaPlayerStatusBuilder
class constructs instances of theStatus
class and offers a fluent interface for creating and configuring it.TheMediaViewBuilder
class constructs instances of theMediaView
class and offers a fluent interface for creating and configuring it.TheSubtitleTrackBuilder
class constructs instances of theSubtitleTrack
class and offers a fluent interface for creating and configuring it.TheVideoTrackBuilder
class constructs instances of theVideoTrack
class and offers a fluent interface for creating and configuring it.