com.evolution.player.ui.artwork
Class AlbumArtworkDecorator

java.lang.Object
  extended by com.evolution.player.ui.artwork.AlbumArtworkDecorator

public abstract class AlbumArtworkDecorator
extends java.lang.Object

An album artwork decorator can decorate an decoration target as a long running operation. The decoration can be based on a given media info.

An album artwork decorator can be contributed through the com.evolution.player.ui.artworkDecorator extension point defined in the com.evolution.player.ui plugin.

Clients must implement.

Since:
0.5
See Also:
AlbumCoverView, AlbumArtworkProvider

Nested Class Summary
static class AlbumArtworkDecorator.Decoration
          A decoration.
static interface AlbumArtworkDecorator.IDecorationTarget
          A decoration target.
static class AlbumArtworkDecorator.Position
          The position of a decoration.
 
Constructor Summary
AlbumArtworkDecorator()
           
 
Method Summary
abstract  void decorate(MediaInfo info, AlbumArtworkDecorator.IDecorationTarget target, IProgressMonitor monitor)
          Calculate the decorations and decorate the given target based on the given media info.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlbumArtworkDecorator

public AlbumArtworkDecorator()
Method Detail

decorate

public abstract void decorate(MediaInfo info,
                              AlbumArtworkDecorator.IDecorationTarget target,
                              IProgressMonitor monitor)
Calculate the decorations and decorate the given target based on the given media info. Check for monitor cancelation.

Parameters:
info - the media info context information
target - the target of the decoration
monitor - a progress monitor to report progress to