fi.hut.tml.xsmiles.mlfc.smil.viewer
Interface Viewer

All Known Implementing Classes:
BrowserViewer, JSMILPlayerCore, SMILMLFC, SMILMLFCAWT, SMILViewer, SMILViewer, SMILViewer

public interface Viewer

This is the viewer and port to the world. It implements everything the SMIL DOM requires.


Method Summary
 void addTimePoint(java.lang.String elementId)
           
 void displayStatusText(java.lang.String url)
           
 java.net.URL getBaseURL()
          Return the base URL of the document.
 Decorator getDecorator()
           
 BrushHandler getNewBrushHandler()
           
 DrawingArea getNewDrawingArea(int type, boolean block)
          Returns a new drawing area, of type DrawingArea.ROOTLAYOUT or DrawingArea.TOPLAYOUT
 MediaHandler getNewForeignHandler(org.w3c.dom.Element e)
          Get a new instance of foreign media handler - to render parasite elements.
 LinkHandler getNewLinkHandler()
          Creates a new link handler.
 MediaHandler getNewMediaHandler()
           
 boolean getPlayAudio()
           
 boolean getPlayImage()
           
 boolean getPlayVideo()
           
 SMILDocument getSMILDoc()
           
 java.lang.String getSystemAudioDesc()
           
 java.lang.String getSystemBitrate()
           
 java.lang.String getSystemCaptions()
           
 boolean getSystemComponent(java.lang.String component)
           
 java.lang.String getSystemCPU()
           
 java.lang.String getSystemLanguage()
           
 java.lang.String getSystemOperatingSystem()
           
 java.lang.String getSystemOverdubOrCaption()
           
 java.lang.String getSystemOverdubOrSubtitle()
           
 boolean getSystemRequired(java.lang.String prefix)
           
 int getSystemScreenDepth()
           
 int getSystemScreenHeight()
           
 int getSystemScreenWidth()
           
 java.lang.String getTitle()
          Get the title of the presentation.
 int getWindowHeight()
           
 int getWindowWidth()
           
 void gotoExternalLink(java.lang.String url)
          Open external link replacing the existing presentation
 void gotoExternalLinkNewWindow(java.lang.String url)
          Open external link in a new window
 void gotoExternalLinkTarget(java.lang.String url, java.lang.String target)
          Open external link replacing/opening new target
 boolean isHost()
          SMILDoc requires this from the SMILMLFC, which may return true or false.
 void setDocumentBaseURI(java.lang.String base)
           
 void setTitle(java.lang.String title)
          Set the title for the presentation.
 

Method Detail

getBaseURL

public java.net.URL getBaseURL()
Return the base URL of the document.


getWindowWidth

public int getWindowWidth()

getWindowHeight

public int getWindowHeight()

getSystemBitrate

public java.lang.String getSystemBitrate()

getSystemCaptions

public java.lang.String getSystemCaptions()

getSystemLanguage

public java.lang.String getSystemLanguage()

getSystemOverdubOrCaption

public java.lang.String getSystemOverdubOrCaption()

getSystemRequired

public boolean getSystemRequired(java.lang.String prefix)

getSystemScreenWidth

public int getSystemScreenWidth()

getSystemScreenHeight

public int getSystemScreenHeight()

getSystemScreenDepth

public int getSystemScreenDepth()

getSystemOverdubOrSubtitle

public java.lang.String getSystemOverdubOrSubtitle()

getSystemAudioDesc

public java.lang.String getSystemAudioDesc()

getSystemOperatingSystem

public java.lang.String getSystemOperatingSystem()

getSystemCPU

public java.lang.String getSystemCPU()

getSystemComponent

public boolean getSystemComponent(java.lang.String component)

getNewMediaHandler

public MediaHandler getNewMediaHandler()

getNewBrushHandler

public BrushHandler getNewBrushHandler()

getNewForeignHandler

public MediaHandler getNewForeignHandler(org.w3c.dom.Element e)
Get a new instance of foreign media handler - to render parasite elements.


getNewLinkHandler

public LinkHandler getNewLinkHandler()
Creates a new link handler.


getNewDrawingArea

public DrawingArea getNewDrawingArea(int type,
                                     boolean block)
Returns a new drawing area, of type DrawingArea.ROOTLAYOUT or DrawingArea.TOPLAYOUT


getSMILDoc

public SMILDocument getSMILDoc()

setDocumentBaseURI

public void setDocumentBaseURI(java.lang.String base)

gotoExternalLink

public void gotoExternalLink(java.lang.String url)
Open external link replacing the existing presentation

Parameters:
url - URL to open

gotoExternalLinkTarget

public void gotoExternalLinkTarget(java.lang.String url,
                                   java.lang.String target)
Open external link replacing/opening new target

Parameters:
url - URL to open
target - target frame/window

gotoExternalLinkNewWindow

public void gotoExternalLinkNewWindow(java.lang.String url)
Open external link in a new window

Parameters:
url - URL to open

displayStatusText

public void displayStatusText(java.lang.String url)

addTimePoint

public void addTimePoint(java.lang.String elementId)

getPlayImage

public boolean getPlayImage()

getPlayAudio

public boolean getPlayAudio()

getPlayVideo

public boolean getPlayVideo()

isHost

public boolean isHost()
SMILDoc requires this from the SMILMLFC, which may return true or false. Other viewers always return true.


getTitle

public java.lang.String getTitle()
Get the title of the presentation. null if no title present.


setTitle

public void setTitle(java.lang.String title)
Set the title for the presentation.

Parameters:
title - Title for the presentation

getDecorator

public Decorator getDecorator()


X-Smiles 1.2