|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.bluebones.boggle.Theme
public class Theme
Represents a set of appearance settings for Boggle. Also provides methods of storing and retrieving the current Theme.
| Constructor Summary | |
|---|---|
Theme(String name,
int diceSize,
Color textColor,
Color diceColor,
Font font)
Initializes a new Theme. |
|
| Method Summary | |
|---|---|
Object |
clone()
Creates and returns a copy of this object. |
Color |
diceColor()
Gets the color of the dice in this theme. |
int |
diceSize()
Gets the size of the dice (in pixels) in this theme. |
Font |
font()
Gets the font of this Theme. |
static Theme |
getCurrentTheme()
Gets the current saved default theme. |
static Theme |
getTheme(String name)
Gets the Theme specified by name/ |
String |
name()
Gets the name of this theme. |
static void |
saveCurrentTheme(Theme theme)
Saves the specified theme in this computer's preferences as the current theme. |
static void |
saveTheme(Theme theme)
Saves theme to this computer's preferences. |
void |
setDiceColor(Color color)
Sets the dice color. |
void |
setDiceSize(int diceSize)
Sets the dice size. |
void |
setFont(Font font)
Set the font of this Theme. |
void |
setName(String name)
Sets the name of this theme. |
void |
setTextColor(Color color)
Sets the text color. |
Color |
textColor()
Gets the color of the text in this theme. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Theme(String name,
int diceSize,
Color textColor,
Color diceColor,
Font font)
Theme.
name - Name of the theme.diceSize - Size of dice in pixels.textColor - Color of dice text.diceColor - Color of dice background.font - Font of dice text.| Method Detail |
|---|
public static Theme getTheme(String name)
Theme specified by name/
Theme with that name.
IllegalArgumentException - If the specified theme is not in
preferences on this computer.public static void saveTheme(Theme theme)
theme to this computer's preferences.
theme - Theme to save.public static Theme getCurrentTheme()
Theme.public static void saveCurrentTheme(Theme theme)
theme - Theme to save.public String name()
String theme name.public int diceSize()
public Color textColor()
Color of text.public Color diceColor()
Color of dice.public Font font()
Theme.
Font used in this Theme.public void setName(String name)
name - String name of theme.public void setDiceSize(int diceSize)
diceSize - int size in pixels.public void setTextColor(Color color)
color - Color to set.public void setDiceColor(Color color)
color - Color to set.public void setFont(Font font)
Theme.
font - Font to set.
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - If something goes really weird.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||