net.bluebones.boggle
Class DieIcon

java.lang.Object
  extended by net.bluebones.boggle.DieIcon

public class DieIcon
extends Object

Class that creates die images.

Version:
0.3 $Revision: 1.4 $
Author:
Thomas David Baker

Method Summary
static ImageIcon getDie(String text, Theme theme)
          Creates an image of a die.
static ImageIcon getDie(String text, Theme theme, boolean jumbled)
          Creates an image of a die.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDie

public static ImageIcon getDie(String text,
                               Theme theme)
Creates an image of a die.

Parameters:
text - String text to appear on the die. This should be no more than two characters.
theme - Theme to use to generate the die.

getDie

public static ImageIcon getDie(String text,
                               Theme theme,
                               boolean jumbled)
Creates an image of a die.

Parameters:
text - String text to appear on the die. This should be no more than two characters.
theme - Theme to use to generate the die.
jumbled - boolean, whether to randomly orient the die (either straight, upside down, left, or right) like in the dice game. If false, die will be straight.