fi.hut.tml.xsmiles.gui.components.awt
Class XAMedia

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.awt.ComponentWithCaption
      extended byfi.hut.tml.xsmiles.gui.components.awt.AWTComponent
          extended byfi.hut.tml.xsmiles.gui.components.awt.XAMedia
All Implemented Interfaces:
XComponent, XMedia
Direct Known Subclasses:
XADocument

public class XAMedia
extends AWTComponent
implements XMedia

Interface to a media component Mostly unimplemented, waiting for binary functional component framework. A lot of similarities with SMIL MediaComponent.

Author:
Kari, Juha

Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTComponent
fInputMode
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.ComponentWithCaption
actionable, axis, caption, container, content, currentZoom, layoutDone, X_AXIS, Y_AXIS
 
Constructor Summary
XAMedia(java.net.URL u)
           
 
Method Summary
 void close()
           
 void freeze()
           
 boolean getEnabled()
           
 boolean isStatic()
          Checks if this media is static or continuous.
 void pause()
           
 void play()
           
 void prefetch()
           
 void setDescription(java.lang.String s)
           
 void setMIMEType(java.lang.String mimeType)
          Force this media to use this media type
 void setURL(java.lang.String url)
          Sets the URL of the media.
 void stop()
           
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTComponent
addCaption, createHint, init, setHintText, setInputMode, sizeComponent
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.ComponentWithCaption
addActionListener, addFocusListener, addHelpListener, addMouseListener, getActionable, getComponent, getDefaultBackgroundColor, getHeight, getMinimumSize, getSize, getStyle, getWidth, getX, getY, layoutComponent, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setActionable, setBackground, setBounds, setCaptionStyle, setCaptionText, setEnabled, setFocus, setFont, setForeground, setStyle, setVisible, setZoom
 
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.gui.components.XComponent
addActionListener, addFocusListener, addHelpListener, addMouseListener, getComponent, getHeight, getSize, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setEnabled, setFocus, setForeground, setHintText, setInputMode, setStyle, setVisible, setZoom
 

Constructor Detail

XAMedia

public XAMedia(java.net.URL u)
Method Detail

isStatic

public boolean isStatic()
Checks if this media is static or continuous.

Specified by:
isStatic in interface XMedia
Returns:
true if media is static.

setDescription

public void setDescription(java.lang.String s)
Specified by:
setDescription in interface XMedia
Parameters:
s - Set the description of the media (This can be e.g., the ALT tag)

setURL

public void setURL(java.lang.String url)
Sets the URL of the media.

Specified by:
setURL in interface XMedia

setMIMEType

public void setMIMEType(java.lang.String mimeType)
Force this media to use this media type

Specified by:
setMIMEType in interface XMedia

prefetch

public void prefetch()
Specified by:
prefetch in interface XMedia

play

public void play()
Specified by:
play in interface XMedia

pause

public void pause()
Specified by:
pause in interface XMedia

stop

public void stop()
Specified by:
stop in interface XMedia

freeze

public void freeze()
Specified by:
freeze in interface XMedia

close

public void close()
Specified by:
close in interface XMedia

getEnabled

public boolean getEnabled()
Specified by:
getEnabled in interface XComponent
Returns:


X-Smiles 1.2