|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.HaviMedia
fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.TextMedia
This is the implementation of text media. Uses internal CSS parser for simple html.
| Nested Class Summary | |
class |
TextMedia.MyLabel
Simple class to draw text. |
| Field Summary | |
protected org.w3c.dom.css.CSSStyleDeclaration |
CSSStyle
the CSS style |
| Constructor Summary | |
TextMedia()
|
|
| Method Summary | |
void |
addMediaListener(MediaListener listener)
Adds a MediaListener for this media. |
void |
close()
This will freeze all memory and references to this media. |
int |
getOriginalDuration()
Get the duration of media. |
int |
getOriginalHeight()
Get the real height of the media. |
int |
getOriginalWidth()
Get the real width of the media. |
boolean |
isStatic()
Checks if this media is static or continuous. |
void |
pause()
Pauses the media. |
void |
play()
Plays the media. |
void |
prefetch()
Prefetches media. |
void |
run()
|
void |
setBounds(int x,
int y,
int width,
int height)
Set the coordinates for the media. |
void |
setContainer(java.awt.Container container)
Sets the container the media will be rendered in. |
void |
setMediaTime(int millisecs)
This moves the time position in media. |
void |
setSoundVolume(int percentage)
Set the sound volume for media. |
void |
setStyle(org.w3c.dom.css.CSSStyleDeclaration style)
(CSSStylableMedia interface) set the resolved CSS style for this element |
void |
setText(java.lang.String text)
Set the text for this text component. |
void |
setUrl(java.lang.String url)
Set the url for this text component. |
void |
stop()
Stops the media. |
| Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.HaviMedia |
abort, setMLFCListener, setUrl, showControls |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fi.hut.tml.xsmiles.gui.media.general.Media |
setMLFCListener, setUrl, showControls |
| Field Detail |
protected org.w3c.dom.css.CSSStyleDeclaration CSSStyle
| Constructor Detail |
public TextMedia()
| Method Detail |
public boolean isStatic()
isStatic in interface Mediapublic void setUrl(java.lang.String url)
setUrl in class HaviMediaurl - URL string to showpublic void setStyle(org.w3c.dom.css.CSSStyleDeclaration style)
setStyle in interface CSSStylableMediapublic void setText(java.lang.String text)
text - String to showpublic void prefetch()
Media
prefetch in interface Mediapublic void setContainer(java.awt.Container container)
Media
setContainer in interface Mediacontainer - This container will contain the media.public void play()
MediaIf the media is not yet prefetched, it will first be prefetched.
play in interface Mediapublic void run()
run in interface java.lang.Runnablepublic void pause()
Media
pause in interface Mediapublic void stop()
Media
stop in interface Media
public void setBounds(int x,
int y,
int width,
int height)
Media
setBounds in interface Mediapublic void close()
Media
close in interface Mediapublic void addMediaListener(MediaListener listener)
Media
addMediaListener in interface Mediapublic void setMediaTime(int millisecs)
setMediaTime in interface Mediamillisecs - Time in millisecspublic int getOriginalDuration()
getOriginalDuration in interface Mediapublic int getOriginalWidth()
getOriginalWidth in interface Mediapublic int getOriginalHeight()
getOriginalHeight in interface Mediapublic void setSoundVolume(int percentage)
setSoundVolume in interface Mediapercentage - Sound volume, 0-100- (0 is quiet, 100 is original loudness, 200 twice as loud;
dB change in signal level = 20 log10(percentage / 100) )
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||