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 Summary
Fields Modifier and Type Field Description static javax.swing.UIDefaultsiconsThe image icons.
-
Constructor Summary
Constructors Constructor Description GUIImageLoader()
-
Method Summary
All 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
-
getImage
public 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
-
main
public static void main(java.lang.String[] args)
Main for testing.
-
getCardIconHeight
public static int getCardIconHeight()
Get bthe height of the icons.
-
-