Class TableArtworkCache
- java.lang.Object
-
- com.tagtraum.beatunes.songtable.renderer.TableArtworkCache
-
public class TableArtworkCache extends Object
ProvidesArtworkTableCellRendererwith images.- Author:
- Hendrik Schreiber
-
-
Field Summary
Fields Modifier and Type Field Description static BufferedImageNO_IMAGE
-
Constructor Summary
Constructors Constructor Description TableArtworkCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Remove all images from this cache.BufferedImageget(AudioSong song, int rows)intgetHeight()intgetWidth()voidload(AudioSong song, int rows)voidremove(AudioSong song)Remove artwork for a single song from this cache.voidsetHeight(int height)voidsetWidth(int width)
-
-
-
Field Detail
-
NO_IMAGE
public static final BufferedImage NO_IMAGE
-
-
Method Detail
-
getHeight
public int getHeight()
-
setHeight
public void setHeight(int height)
-
getWidth
public int getWidth()
-
setWidth
public void setWidth(int width)
-
remove
public void remove(AudioSong song)
Remove artwork for a single song from this cache.- Parameters:
song- song
-
clear
public void clear()
Remove all images from this cache.
-
load
public void load(AudioSong song, int rows)
-
get
public BufferedImage get(AudioSong song, int rows)
-
-