fi.hut.tml.xsmiles.mlfc.smil.viewer.swing
Class SwingLinkHandler

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.smil.viewer.swing.SwingMediaHandler
      extended byfi.hut.tml.xsmiles.mlfc.smil.viewer.swing.SwingLinkHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, LinkHandler, MediaHandler, java.awt.event.MouseListener
Direct Known Subclasses:
SMILMLFCLinkHandler

public class SwingLinkHandler
extends SwingMediaHandler
implements LinkHandler, java.awt.event.MouseListener

Implements links in Swing.


Field Summary
 java.awt.Component linkComp
           
 java.lang.String linkTitle
           
 Viewer viewer
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.smil.viewer.swing.SwingMediaHandler
alt, container, documentURL, drawingArea, height, left, media, mediaListener, mimeType, playing, prefetched, top, url, width
 
Constructor Summary
SwingLinkHandler()
           
 
Method Summary
 void close()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
          If link entered, display url or title
 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.swing.SwingMediaHandler
actionPerformed, addListener, 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, freeze, getComponent, getHeight, getLeft, getOriginalHeight, getOriginalWidth, getTop, getWidth, isStatic, prefetch, setAlt, setAudioVolume, setBounds, setDrawingArea, setMediaTime, setMIMEType, setRootLayoutSize, setURL
 

Field Detail

linkComp

public java.awt.Component linkComp

viewer

public Viewer viewer

linkTitle

public java.lang.String linkTitle
Constructor Detail

SwingLinkHandler

public SwingLinkHandler()
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 SwingMediaHandler

pause

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

stop

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

close

public void close()
Specified by:
close in interface MediaHandler
Overrides:
close in class SwingMediaHandler

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
If link entered, display url or title

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

mouseClicked

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

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 SwingMediaHandler


X-Smiles 1.2