|
|||||||||||
| 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.awt.AwtMediaHandler
Interface to media.
| Field Summary | |
java.lang.String |
alt
|
protected java.awt.Container |
container
|
protected java.lang.String |
documentURL
|
protected AwtDrawingArea |
drawingArea
|
protected int |
height
|
protected int |
left
|
protected Media |
media
|
protected MediaListener |
mediaListener
|
protected java.lang.String |
mimeType
|
protected boolean |
playing
|
protected boolean |
prefetched
|
protected SMILDocumentImpl |
smilDoc
|
protected int |
top
|
java.lang.String |
url
|
protected Viewer |
viewer
|
protected int |
width
|
| Constructor Summary | |
AwtMediaHandler()
Create a new MediaHandler for MLFC. |
|
AwtMediaHandler(java.lang.String documentURL)
Create a new MediaHandler for Swing. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addListener(MediaListener mediaListener)
Add a media listener (currently supports only one listener) |
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 x,
int y,
int w,
int h)
|
void |
setDrawingArea(DrawingArea d)
Set the drawing area. |
void |
setMediaTime(int millisecs)
Set the media time position. |
void |
setMIMEType(java.lang.String type)
Force this media to use this media type |
void |
setRootLayoutSize(int width,
int height)
This media handler will know the rootlayout size after this is called. |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.lang.String alt
public java.lang.String url
protected MediaListener mediaListener
protected AwtDrawingArea drawingArea
protected java.awt.Container container
protected java.lang.String documentURL
protected SMILDocumentImpl smilDoc
protected Viewer viewer
protected Media media
protected boolean prefetched
protected boolean playing
protected java.lang.String mimeType
protected int top
protected int left
protected int width
protected int height
| Constructor Detail |
public AwtMediaHandler()
public AwtMediaHandler(java.lang.String documentURL)
documentURL - The URL for smil document path.| Method Detail |
public void setViewer(Viewer v)
MediaHandler
setViewer in interface MediaHandlerpublic void setDrawingArea(DrawingArea d)
setDrawingArea in interface MediaHandlerpublic void addListener(MediaListener mediaListener)
addListener in interface MediaHandlerpublic boolean isStatic()
isStatic in interface MediaHandler
public void setRootLayoutSize(int width,
int height)
setRootLayoutSize in interface MediaHandlerwidth - RootLayout widthheight - RootLayout heightpublic void setAlt(java.lang.String alt)
MediaHandler
setAlt in interface MediaHandlerpublic void setURL(java.lang.String url)
MediaHandler
setURL in interface MediaHandlerpublic void setMIMEType(java.lang.String type)
MediaHandler
setMIMEType in interface MediaHandlerpublic void prefetch()
prefetch in interface MediaHandlerpublic void play()
play in interface MediaHandlerpublic void pause()
pause in interface MediaHandlerpublic void stop()
stop in interface MediaHandlerpublic void freeze()
freeze in interface MediaHandlerpublic void close()
close in interface MediaHandlerpublic void setMediaTime(int millisecs)
setMediaTime in interface MediaHandlermillisecs - Time in millisecondspublic int getTop()
getTop in interface MediaHandlerpublic int getLeft()
getLeft in interface MediaHandlerpublic int getWidth()
getWidth in interface MediaHandlerpublic int getHeight()
getHeight in interface MediaHandler
public void setBounds(int x,
int y,
int w,
int h)
setBounds in interface MediaHandlerpublic int getOriginalWidth()
getOriginalWidth in interface MediaHandlerpublic int getOriginalHeight()
getOriginalHeight in interface MediaHandlerpublic void setAudioVolume(int percentage)
setAudioVolume in interface MediaHandlerpercentage - 0-100-oo , 100 giving normal sound level.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic java.lang.Object getComponent()
MediaHandler
getComponent in interface MediaHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||