Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

irate.plugin
Interface PluginApplication  view PluginApplication download PluginApplication.java


public interface PluginApplication

This is the interface through which plugins talk to the application. Some things we could add: Event registration for plugins that want to


Method Summary
 irate.common.Track getPlayingTrack()
          Get the track that is currently being played.
 irate.common.Track getSelectedTrack()
          Get the track that is currently selected.
 PluginUIFactory getUIFactory()
          Get a factory that creates suitable UI objects, depending on the style of user interface used in the application.
 boolean isPaused()
          Return true if music play is paused.
 void setPaused(boolean paused)
          Pause or unpause music play.
 void setRating(irate.common.Track track, int rating)
          Set rating for the specified track.
 void skip()
          Skip to the next song.
 

Method Detail

getUIFactory

public PluginUIFactory getUIFactory()
Get a factory that creates suitable UI objects, depending on the style of user interface used in the application.


isPaused

public boolean isPaused()
Return true if music play is paused.


setPaused

public void setPaused(boolean paused)
Pause or unpause music play.


skip

public void skip()
Skip to the next song.


getPlayingTrack

public irate.common.Track getPlayingTrack()
Get the track that is currently being played.


getSelectedTrack

public irate.common.Track getSelectedTrack()
Get the track that is currently selected. In some implementations this may be the same as the track that is playing.


setRating

public void setRating(irate.common.Track track,
                      int rating)
Set rating for the specified track.