|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.examples.blackjack.gui.GUIImageLoader
public class GUIImageLoader
This class serves as an image-loader and image-cache. Images are often requested during a blackjack-game, and for convenience- as well as performance-purposes these images are loaded and cached by this class.
Field Summary | |
---|---|
static UIDefaults |
icons
The image icons. |
Constructor Summary | |
---|---|
GUIImageLoader()
|
Method Summary | |
---|---|
static int |
getCardIconHeight()
Get bthe height of the icons. |
static ImageIcon |
getImage(String card)
Load the image of the card passed as a parameter |
static void |
main(String[] args)
Main for testing. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static UIDefaults icons
Constructor Detail |
---|
public GUIImageLoader()
Method Detail |
---|
public static ImageIcon getImage(String card)
card
- String-representation of the card to load
the image for, cardName == fileNamepublic static void main(String[] args)
public static int getCardIconHeight()
|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.