Package jadex.bdi.examples.blackjack.gui
Class GUIImageLoader
- java.lang.Object
- 
- jadex.bdi.examples.blackjack.gui.GUIImageLoader
 
- 
 public class GUIImageLoader extends java.lang.ObjectThis 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 SummaryFields Modifier and Type Field Description static javax.swing.UIDefaultsiconsThe image icons.
 - 
Constructor SummaryConstructors Constructor Description GUIImageLoader()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetCardIconHeight()Get bthe height of the icons.static javax.swing.ImageIcongetImage(java.lang.String card)Load the image of the card passed as a parameterstatic voidmain(java.lang.String[] args)Main for testing.
 
- 
- 
- 
Method Detail- 
getImagepublic static javax.swing.ImageIcon getImage(java.lang.String card) Load the image of the card passed as a parameter- Parameters:
- card- String-representation of the card to load the image for, cardName == fileName
 
 - 
mainpublic static void main(java.lang.String[] args) Main for testing.
 - 
getCardIconHeightpublic static int getCardIconHeight() Get bthe height of the icons.
 
- 
 
-