Interface IPlayableTrack

  • All Known Implementing Classes:
    LoopTrack, MediaTrack

    public interface IPlayableTrack
    Defining the functionality of a sound track that can be played.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2015 Created on Jun 17, 2015
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getLength()
      Retrieve the length of the track in seconds
      void play()
      Start playing the track.
      javafx.beans.property.ReadOnlyBooleanProperty playingProperty()
      Property indicating if the track is playing.
      void stop()
      Stop playing the track.
    • Method Detail

      • getLength

        double getLength()
        Retrieve the length of the track in seconds
        Returns:
        length of the track in seconds
      • play

        void play()
        Start playing the track.
      • stop

        void stop()
        Stop playing the track.
      • playingProperty

        javafx.beans.property.ReadOnlyBooleanProperty playingProperty()
        Property indicating if the track is playing.
        Returns:
        boolean property indicating if the track is currently playing.