fi.hut.tml.xsmiles.mlfc.smil.viewer.awt
Class AwtLinkHandler

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.smil.viewer.awt.AwtMediaHandler
      extended byfi.hut.tml.xsmiles.mlfc.smil.viewer.awt.AwtLinkHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, LinkHandler, MediaHandler, java.awt.event.MouseListener

public class AwtLinkHandler
extends AwtMediaHandler
implements LinkHandler, java.awt.event.MouseListener

Implements links in Swing.


Field Summary
protected  java.awt.Component linkComp
           
protected  java.lang.String linkTitle
           
protected  SMILDocumentImpl smilDoc
           
protected  Viewer viewer
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.smil.viewer.awt.AwtMediaHandler
alt, container, documentURL, drawingArea, height, left, media, mediaListener, mimeType, playing, prefetched, top, url, width
 
Constructor Summary
AwtLinkHandler()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void linkClicked(java.awt.event.MouseEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 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 setTitle(java.lang.String title)
          Sets the link title
 void setViewer(Viewer v)
          Set the viewer - required for prefetch, URL creation etc.
 void stop()
           
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.viewer.awt.AwtMediaHandler
addListener, close, freeze, getComponent, getHeight, getLeft, getOriginalHeight, getOriginalWidth, getTop, getWidth, isStatic, prefetch, setAlt, setAudioVolume, setBounds, setDrawingArea, setMediaTime, setMIMEType, setRootLayoutSize, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fi.hut.tml.xsmiles.mlfc.smil.viewer.MediaHandler
addListener, close, freeze, getComponent, getHeight, getLeft, getOriginalHeight, getOriginalWidth, getTop, getWidth, isStatic, prefetch, setAlt, setAudioVolume, setBounds, setDrawingArea, setMediaTime, setMIMEType, setRootLayoutSize, setURL
 

Field Detail

linkComp

protected java.awt.Component linkComp

linkTitle

protected java.lang.String linkTitle

smilDoc

protected SMILDocumentImpl smilDoc

viewer

protected Viewer viewer
Constructor Detail

AwtLinkHandler

public AwtLinkHandler()
Method Detail

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: LinkHandler
Sets the link title

Specified by:
setTitle in interface LinkHandler

play

public void play()
Specified by:
play in interface MediaHandler
Overrides:
play in class AwtMediaHandler

pause

public void pause()
Specified by:
pause in interface MediaHandler
Overrides:
pause in class AwtMediaHandler

stop

public void stop()
Specified by:
stop in interface MediaHandler
Overrides:
stop in class AwtMediaHandler

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class AwtMediaHandler

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

linkClicked

public void linkClicked(java.awt.event.MouseEvent e)

setViewer

public void setViewer(Viewer v)
Description copied from interface: MediaHandler
Set the viewer - required for prefetch, URL creation etc.

Specified by:
setViewer in interface LinkHandler
Overrides:
setViewer in class AwtMediaHandler


X-Smiles 1.2