|
|||||||||||
| 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.swing.SwingBrushHandler
Swing Brush Handler. Displays a colored panel.
| Field Summary | |
protected java.lang.String |
alt
|
protected java.awt.Container |
container
|
protected SwingDrawingArea |
drawingArea
|
protected int |
height
|
protected int |
left
|
protected MediaListener |
mediaListener
|
protected boolean |
prefetched
|
protected int |
top
|
protected java.lang.String |
url
|
protected int |
width
|
| Constructor Summary | |
SwingBrushHandler()
Create a new BrushHandler. |
|
| Method Summary | |
void |
addListener(MediaListener mediaListener)
Add a media listener (currently supports only one listener) |
void |
close()
|
void |
freeze()
Brush freeze - won't do anything. |
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 |
mouseClicked(java.awt.event.MouseEvent e)
Mouse listener... |
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
pause()
|
void |
play()
|
void |
prefetch()
|
void |
run()
|
void |
setAlt(java.lang.String alt)
Sets the alt text for the media. |
void |
setAudioVolume(int percentage)
Set the sound volume for media. |
void |
setBounds(int x,
int y,
int w,
int h)
|
void |
setColor(java.lang.String color)
Sets the color of the brush. |
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 |
protected java.lang.String alt
protected java.lang.String url
protected MediaListener mediaListener
protected SwingDrawingArea drawingArea
protected java.awt.Container container
protected boolean prefetched
protected int top
protected int left
protected int width
protected int height
| Constructor Detail |
public SwingBrushHandler()
| 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 setColor(java.lang.String color)
BrushHandler
setColor in interface BrushHandlerpublic void setMIMEType(java.lang.String type)
MediaHandler
setMIMEType in interface MediaHandlerpublic void prefetch()
prefetch in interface MediaHandlerpublic void play()
play in interface MediaHandlerpublic void run()
run in interface java.lang.Runnablepublic 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 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 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 void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic 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 | ||||||||||