|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to media.
| Method Summary | |
void |
addListener(MediaListener mediaListener)
Adds a listener for this media. |
void |
close()
|
void |
freeze()
|
java.lang.Object |
getComponent()
get the possible component (only used when run in x-smiles |
int |
getHeight()
|
int |
getLeft()
|
int |
getOriginalHeight()
Get the real height of the media. |
int |
getOriginalWidth()
Get the real width of the media. |
int |
getTop()
|
int |
getWidth()
|
boolean |
isStatic()
Checks if this media is static or continuous. |
void |
pause()
|
void |
play()
|
void |
prefetch()
|
void |
setAlt(java.lang.String alt)
Sets the alt text for the media. |
void |
setAudioVolume(int percentage)
Set the volume of audio (if available). |
void |
setBounds(int left,
int top,
int width,
int height)
|
void |
setDrawingArea(DrawingArea d)
Set the drawing area - media will be rendered in this drawing area. |
void |
setMediaTime(int millisecs)
Set the media start time. |
void |
setMIMEType(java.lang.String mimeType)
Force this media to use this media type |
void |
setRootLayoutSize(int width,
int height)
Set the drawing area size. |
void |
setURL(java.lang.String url)
Sets the URL of the media. |
void |
setViewer(Viewer v)
Set the viewer - required for prefetch, URL creation etc. |
void |
stop()
|
| Method Detail |
public boolean isStatic()
public void addListener(MediaListener mediaListener)
public void setAlt(java.lang.String alt)
public void setURL(java.lang.String url)
public void setViewer(Viewer v)
public void setMIMEType(java.lang.String mimeType)
public void prefetch()
public void play()
public void pause()
public void stop()
public void freeze()
public void close()
public void setMediaTime(int millisecs)
millisecs - Time in millisecondspublic void setAudioVolume(int percentage)
percentage - 0-100-oo , 100 giving normal sound level.public void setDrawingArea(DrawingArea d)
public java.lang.Object getComponent()
public void setRootLayoutSize(int width,
int height)
public int getTop()
public int getLeft()
public int getWidth()
public int getHeight()
public void setBounds(int left,
int top,
int width,
int height)
public int getOriginalWidth()
public int getOriginalHeight()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||