Class TableArtworkCache
- java.lang.Object
-
- com.tagtraum.beatunes.songtable.renderer.TableArtworkCache
-
public class TableArtworkCache extends Object
ProvidesArtworkTableCellRenderer
with images.- Author:
- Hendrik Schreiber
-
-
Field Summary
Fields Modifier and Type Field Description static BufferedImage
NO_IMAGE
-
Constructor Summary
Constructors Constructor Description TableArtworkCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Remove all images from this cache.BufferedImage
get(AudioSong song, int rows)
int
getHeight()
int
getWidth()
void
load(AudioSong song, int rows)
void
remove(AudioSong song)
Remove artwork for a single song from this cache.void
setHeight(int height)
void
setWidth(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)
-
-