Jadex 0.96

jadex.examples.blackjack.gui
Class GUIImageLoader

java.lang.Object
  extended by jadex.examples.blackjack.gui.GUIImageLoader

public class GUIImageLoader
extends Object

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

icons

public static UIDefaults icons
The image icons.

Constructor Detail

GUIImageLoader

public GUIImageLoader()
Method Detail

getImage

public static ImageIcon getImage(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(String[] args)
Main for testing.


getCardIconHeight

public static int getCardIconHeight()
Get bthe height of the icons.


Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.