|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.huguesjohnson.tiamat.demos.Camineet.SequenceFrame
SequenceFrame.java - class to represent a frame in a sequence
| Field Summary | |
protected java.lang.String |
absoluteDir
|
| Constructor Summary | |
SequenceFrame()
Creates a new instance of SequenceFrame. |
|
SequenceFrame(java.lang.String text,
java.lang.String absoluteDir,
java.lang.String bgImagePath,
java.lang.String bgMusicPath)
Creates a new instance of SequenceFrame. |
|
| Method Summary | |
java.awt.image.BufferedImage |
getBgImage()
Returns the background image for this frame. |
java.lang.String |
getBgImagePath()
Returns the relative path to the background image. |
java.lang.String |
getBgImagePathAbsolute()
Returns the absolute path to the background image. |
java.lang.String |
getBgMusicPath()
Returns the relative path to the background music. |
java.lang.String |
getBgMusicPathAbsolute()
Returns the absolute path to the background music. |
java.lang.String |
getText()
Returns the text to draw in this frame. |
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)
Sets the absolute path to the directory where images and background music are stored. |
void |
setBgImagePath(java.lang.String bgImagePath)
Sets the relative path to the background image. |
void |
setBgMusicPath(java.lang.String bgMusicPath)
Sets the relative path to the background music. |
void |
setText(java.lang.String text)
Set the text to draw in this frame. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected transient java.lang.String absoluteDir
| Constructor Detail |
public SequenceFrame()
public SequenceFrame(java.lang.String text,
java.lang.String absoluteDir,
java.lang.String bgImagePath,
java.lang.String bgMusicPath)
text - The text to draw in this frame.absoluteDir - The new absolute directory.bgImagePath - The relative path to the background image.bgMusicPath - The relative path to the background music.| Method Detail |
public void setText(java.lang.String text)
text - The text to draw in this frame.public java.lang.String getText()
public java.lang.String getBgMusicPath()
public void setBgMusicPath(java.lang.String bgMusicPath)
bgMusicPath - The relative path to the background music.public java.lang.String getBgMusicPathAbsolute()
public void setBgImagePath(java.lang.String bgImagePath)
bgImagePath - The relative path to the background image.public java.lang.String getBgImagePath()
public java.lang.String getBgImagePathAbsolute()
public java.awt.image.BufferedImage getBgImage()
public void setAbsoluteDir(java.lang.String absoluteDir)
absoluteDir - The new absolute directory.
public void onDeserialize(Formatter formatter,
java.lang.String absoluteDir)
onDeserialize in interface Storableformatter - 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 | |||||||||