|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.huguesjohnson.tiamat.graphics.Theme
public class Theme
Theme - stores style elements for a top-level container
Constructor Summary | |
---|---|
Theme()
Default constructor, creates an empty theme |
Method Summary | |
---|---|
ColorScheme |
getColorScheme()
Returns the ColorScheme for this Theme. |
java.awt.image.BufferedImage |
getRadioButtonImage()
Returns the image to display on a radio button. |
java.lang.String |
getRadioButtonImagePath()
Returns the relative path to the image to display on a radio button. |
java.lang.String |
getRadioButtonImagePathAbsolute()
Returns the absolute path to the image to display on a radio button. |
java.awt.image.BufferedImage |
getRadioButtonSelectedImage()
Returns the image to display on a selected radio button. |
java.lang.String |
getRadioButtonSelectedImagePath()
Returns the relative path to the image to display on a selected radio button. |
java.lang.String |
getRadioButtonSelectedImagePathAbsolute()
Returns the absolute path to the image to display on a selected radio button. |
void |
onDeserialize(Formatter formatter,
java.lang.String absoluteDir)
The onDeserialize event should be fired after an object is de-serialized. |
void |
setAbsoluteDir(java.lang.String absoluteDir)
Set the absolute path to the directory where images are stored. |
void |
setColorScheme(ColorScheme colorScheme)
Sets the ColorScheme for this Theme. |
void |
setRadioButtonImagePath(java.lang.String radioButtonImagePath)
Sets the image to display on a radio button. |
void |
setRadioButtonSelectedImagePath(java.lang.String radioButtonSelectedImagePath)
Sets the image to display on a selected radio button. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Theme()
Method Detail |
---|
public ColorScheme getColorScheme()
public void setColorScheme(ColorScheme colorScheme)
colorScheme
- The new ColorScheme for this Theme.public java.awt.image.BufferedImage getRadioButtonImage()
public void setRadioButtonImagePath(java.lang.String radioButtonImagePath)
radioButtonImagePath
- The path to the new image to display on a radio button.public java.lang.String getRadioButtonImagePath()
public java.lang.String getRadioButtonImagePathAbsolute()
public java.awt.image.BufferedImage getRadioButtonSelectedImage()
public void setRadioButtonSelectedImagePath(java.lang.String radioButtonSelectedImagePath)
radioButtonSelectedImagePath
- The path to the new image to display on a selected radio button.public java.lang.String getRadioButtonSelectedImagePath()
public java.lang.String getRadioButtonSelectedImagePathAbsolute()
public void setAbsoluteDir(java.lang.String absoluteDir)
absoluteDir
- New path to the directory where images are stored.public void onDeserialize(Formatter formatter, java.lang.String absoluteDir)
onDeserialize
in interface Storable
formatter
- the formatter to use to load any storable membersabsoluteDir
- the working directory since all paths stored in the object should be relative
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |