|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolution.player.ui.artwork.AlbumArtworkProvider
public abstract class AlbumArtworkProvider
An album artwork provider can provide artwork for a given media info in a long running process.
An artwork provider can be contributed through the
com.evolution.player.ui.artworkProvider
provided by the
com.evolution.player.ui plugin.
Clients must implement.
Nested Class Summary | |
---|---|
class |
AlbumArtworkProvider.ArtworkSearchFailure
The result of a unsuccessful album search. |
class |
AlbumArtworkProvider.ArtworkSearchResult
The result of a artwork search. |
class |
AlbumArtworkProvider.ArtworkSearchSuccess
The result of a successful album search. |
static interface |
AlbumArtworkProvider.IInitializationData
A set of data which can be used to initialize this object. |
Constructor Summary | |
---|---|
AlbumArtworkProvider()
|
Method Summary | |
---|---|
abstract boolean |
canHandle(MediaInfo info)
True if and only if this album artwork provider can provide album artwork for the given media info. |
abstract AlbumArtworkProvider.ArtworkSearchResult |
findArtwork(MediaInfo info,
IProgressMonitor monitor)
Search artwork for the given media info in a long running process report progress to the given monitor and check for cancelation. |
abstract AlbumArtworkProvider.ArtworkSearchSuccess |
getArtwork(MediaInfo info)
Return an artwork for the given media info in a short running process. |
abstract void |
initialize(AlbumArtworkProvider.IInitializationData data)
Initialize this artwork provider with the given data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlbumArtworkProvider()
Method Detail |
---|
public abstract void initialize(AlbumArtworkProvider.IInitializationData data)
data
- the data to use to initialize this objectpublic abstract boolean canHandle(MediaInfo info)
This must be short running
info
- the info to provide artwork for
public abstract AlbumArtworkProvider.ArtworkSearchSuccess getArtwork(MediaInfo info)
canHandle(MediaInfo)
returns true
for the same media info.
This must be short running
info
- the info to provide artwork for
public abstract AlbumArtworkProvider.ArtworkSearchResult findArtwork(MediaInfo info, IProgressMonitor monitor)
AlbumArtworkProvider.ArtworkSearchFailure
explaining why,
otherwise return an AlbumArtworkProvider.ArtworkSearchSuccess
containing the artwork
details. This method is only called if canHandle(MediaInfo)
returns true for the same media info.
This can be long running
info
- the info to provide artwork formonitor
- the monitor to report progress to and to check for cancelation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |