|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
jskat.gui.JSkatGraphicRepository
public class JSkatGraphicRepository
The JSkatGraphicRepository that holds all images used in JSkat
| Field Summary | |
|---|---|
static int |
ABOUT_ICON
Code for the About icon |
static int |
BIG_ICON
Code for big icons |
static int |
EXIT_ICON
Code for the Exit icon |
static int |
FIRST_ICON
Code for the First Trick icon |
static int |
HELP_ICON
Code for the Help icon |
static int |
LAST_ICON
Code for the Last Trick icon |
static int |
NEW_ICON
Code for the New Skat Round icon |
static int |
NEXT_ICON
Code for the Next Trick icon |
static int |
OPEN_ICON
Code for the Open Skat Round icon |
static int |
PREFERENCES_ICON
Code for the Preferences icon |
static int |
PREVIOUS_ICON
Code for the Previous Trick icon |
static int |
SAVE_ICON
Code for the Save Skat Round Icon |
static int |
SMALL_ICON
Code for small icons |
| Constructor Summary | |
|---|---|
JSkatGraphicRepository(JSkatOptions jskatOptions)
Creates a new instance of JSkatGraphicRepository |
|
| Method Summary | |
|---|---|
java.awt.Image |
getCardImage(int suit,
int value)
Gets the card image |
java.awt.Image |
getIconImage(int iconNo,
int bigSmall)
Gets an icon image |
java.awt.Image |
getJSkatLogoImage()
Gets the image for the JSkat logo |
java.awt.Image |
getSkatTableImage()
Gets the image for the skat table |
void |
loadCards(java.lang.String cardType)
Load all card images |
void |
loadIcons()
Loads all icons |
void |
update(java.util.Observable observ,
java.lang.Object obj)
|
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ABOUT_ICON
public static final int EXIT_ICON
public static final int HELP_ICON
public static final int NEW_ICON
public static final int OPEN_ICON
public static final int SAVE_ICON
public static final int FIRST_ICON
public static final int PREVIOUS_ICON
public static final int NEXT_ICON
public static final int LAST_ICON
public static final int PREFERENCES_ICON
public static final int BIG_ICON
public static final int SMALL_ICON
| Constructor Detail |
|---|
public JSkatGraphicRepository(JSkatOptions jskatOptions)
| Method Detail |
|---|
public void loadIcons()
public void loadCards(java.lang.String cardType)
cardType - The directory name for the card set to be loaded
public java.awt.Image getIconImage(int iconNo,
int bigSmall)
iconNo - The icon codebigSmall - code for big or small icons
public java.awt.Image getCardImage(int suit,
int value)
suit - The suit of the cardvalue - The value of the card
public java.awt.Image getSkatTableImage()
public java.awt.Image getJSkatLogoImage()
public void update(java.util.Observable observ,
java.lang.Object obj)
update in interface java.util.Observer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||