|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the interface for media.
| 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 |
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 |
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 |
setUrl(java.net.URL url)
Sets the URL for this media. |
void |
stop()
Stops the media. |
| Method Detail |
public boolean isStatic()
public void setUrl(java.net.URL url)
url - URL for mediapublic void setContainer(java.awt.Container container)
container - This container will contain the media.
public void setBounds(int x,
int y,
int width,
int height)
public void setSoundVolume(int percentage)
percentage - Sound volume, 0-100- (0 is quiet, 100 is original loudness, 200 twice as loud;
dB change in signal level = 20 log10(percentage / 100) )public int getOriginalWidth()
public int getOriginalHeight()
public void prefetch()
public void play()
If the media is not yet prefetched, it will first be prefetched.
public void pause()
public void stop()
public void close()
public void setMediaTime(int millisecs)
millisecs - Time in millisecspublic void addMediaListener(MediaListener listener)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||