|
|||||||||||
| 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.AWTForeignMediaHandler
This class takes care of ForeignElements resizing in the SMIL documents. This SMILMLFC class is a full implementation. This class implements MediaHandler interface, so that SMILREgionElementImpl can control this component.
| Field Summary | |
java.lang.String |
alt
|
protected java.awt.Container |
container
|
protected DrawingArea |
drawingArea
|
protected int |
height
|
protected int |
left
|
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 java.awt.Component |
visualComponent
|
protected int |
width
|
| Constructor Summary | |
AWTForeignMediaHandler()
Create a new ForeignHandler. |
|
AWTForeignMediaHandler(org.w3c.dom.Element e)
Create a new ForeignHandler for SMIL MLFC. |
|
| Method Summary | |
void |
addListener(MediaListener mediaListener)
Add a media listener (currently supports only one listener) ForeignElement does not support links. |
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 DrawingArea drawingArea
protected java.awt.Container container
protected SMILDocumentImpl smilDoc
protected Viewer viewer
protected boolean prefetched
protected boolean playing
protected java.lang.String mimeType
protected int top
protected int left
protected int width
protected int height
protected java.awt.Component visualComponent
| Constructor Detail |
public AWTForeignMediaHandler()
public AWTForeignMediaHandler(org.w3c.dom.Element e)
e - The foreign element implementing VisualComponentService.| 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 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 | ||||||||||