|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.event.WindowAdapter
fi.hut.tml.xsmiles.mlfc.smil.viewer.swing.SMILViewer
This is a standalone application, SMIL Viewer, showing how to display SMIL presenations. This class shows a deeper approach compared to the SMILApp class, thus giving also more flexibility.
To run this viewer as a standalone application, classpath should include xerces.jar and xml-apis.jar
| Field Summary | |
static long |
initMem
|
static long |
initTime
|
| Constructor Summary | |
SMILViewer()
|
|
SMILViewer(java.lang.String fileName)
|
|
SMILViewer(java.net.URL url)
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
Control buttons. |
void |
addTimePoint(java.lang.String elementId)
Called from the SMILDocument, when a new time point is found during prefetching. |
void |
displayStatusText(java.lang.String txt)
Displays a status text |
java.net.URL |
getBaseURL()
Return the base URL of the document. |
Decorator |
getDecorator()
|
BrushHandler |
getNewBrushHandler()
Returns a new BrushHandler for SMIL core logic. |
DrawingArea |
getNewDrawingArea(int type,
boolean block)
Creates a new DrawingArea. |
MediaHandler |
getNewForeignHandler(org.w3c.dom.Element e)
Returns a new ForeignHandler for SMIL core logic. |
LinkHandler |
getNewLinkHandler()
Creates a new LinkHandler. |
MediaHandler |
getNewMediaHandler()
Creates a new MediaHandler. |
boolean |
getPlayAudio()
Returns true if audio should be played. |
boolean |
getPlayImage()
Returns true if images should be played. |
boolean |
getPlayVideo()
Returns true if video should be played. |
SMILDocument |
getSMILDoc()
Get the SMILDocument. |
java.lang.String |
getSystemAudioDesc()
Returns a system attribute for the SMILDocument. |
java.lang.String |
getSystemBitrate()
Returns a system attribute for the SMILDocument. |
java.lang.String |
getSystemCaptions()
Returns a system attribute for the SMILDocument. |
boolean |
getSystemComponent(java.lang.String component)
Returns the value of systemAttribute for the SMIL core logic. |
java.lang.String |
getSystemCPU()
Returns a system attribute for the SMILDocument. |
java.lang.String |
getSystemLanguage()
Returns a system attribute for the SMILDocument. |
java.lang.String |
getSystemOperatingSystem()
Returns a system attribute for the SMILDocument. |
java.lang.String |
getSystemOverdubOrCaption()
Returns a system attribute for the SMILDocument. |
java.lang.String |
getSystemOverdubOrSubtitle()
Returns a system attribute for the SMILDocument. |
boolean |
getSystemRequired(java.lang.String prefix)
Returns the value of systemAttribute for the SMIL core logic. |
int |
getSystemScreenDepth()
Returns a system attribute for the SMILDocument. |
int |
getSystemScreenHeight()
Returns a system attribute for the SMILDocument. |
int |
getSystemScreenWidth()
Returns a system attribute for the SMILDocument. |
java.lang.String |
getTitle()
Get the title of the presentation. |
int |
getWindowHeight()
Returns window height for the SMILDocument. |
int |
getWindowWidth()
Returns window width for the SMILDocument. |
void |
gotoExternalLink(java.lang.String url)
Called when an external link is activated. |
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 |
init(java.io.Reader reader,
java.lang.String path)
Initializes the SMIL presentation for playing. |
boolean |
isHost()
SMILDoc requires this from the SMILMLFC, which may return true or false. |
static void |
main(java.lang.String[] args)
Main method |
void |
setDocumentBaseURI(java.lang.String base)
|
void |
setRootlayoutContainer(java.awt.Container rootlayout)
Set the root-layout container. |
void |
setTitle(java.lang.String title)
Set the title for the presentation. |
void |
start()
Start the presentation. |
void |
stop()
Stop the presentation. |
java.net.URL |
toURL(java.io.File file)
|
void |
windowClosing(java.awt.event.WindowEvent e)
Window closed. |
| Methods inherited from class java.awt.event.WindowAdapter |
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static long initTime
public static long initMem
| Constructor Detail |
public SMILViewer()
public SMILViewer(java.lang.String fileName)
public SMILViewer(java.net.URL url)
| Method Detail |
public static void main(java.lang.String[] args)
public boolean init(java.io.Reader reader,
java.lang.String path)
reader - Reader, where the presentation is loaded frompath - Path to the file (can be a URL)public void start()
public void stop()
public SMILDocument getSMILDoc()
getSMILDoc in interface Viewerpublic void setDocumentBaseURI(java.lang.String base)
setDocumentBaseURI in interface Viewerpublic java.net.URL getBaseURL()
getBaseURL in interface Viewerpublic void gotoExternalLink(java.lang.String url)
gotoExternalLink in interface Viewerurl - Link destination
public void gotoExternalLinkTarget(java.lang.String url,
java.lang.String target)
gotoExternalLinkTarget in interface Viewerurl - URL to opentarget - target frame/windowpublic void gotoExternalLinkNewWindow(java.lang.String url)
gotoExternalLinkNewWindow in interface Viewerurl - URL to openpublic void displayStatusText(java.lang.String txt)
displayStatusText in interface Viewerpublic MediaHandler getNewMediaHandler()
getNewMediaHandler in interface Viewerpublic BrushHandler getNewBrushHandler()
getNewBrushHandler in interface Viewerpublic LinkHandler getNewLinkHandler()
getNewLinkHandler in interface Viewerpublic MediaHandler getNewForeignHandler(org.w3c.dom.Element e)
getNewForeignHandler in interface Viewerpublic void setRootlayoutContainer(java.awt.Container rootlayout)
rootlayout - Container for SMIL presentation
public DrawingArea getNewDrawingArea(int type,
boolean block)
getNewDrawingArea in interface Viewerpublic void addTimePoint(java.lang.String elementId)
addTimePoint in interface Viewerpublic int getWindowWidth()
getWindowWidth in interface Viewerpublic int getWindowHeight()
getWindowHeight in interface Viewerpublic java.lang.String getSystemBitrate()
getSystemBitrate in interface Viewerpublic java.lang.String getSystemCaptions()
getSystemCaptions in interface Viewerpublic java.lang.String getSystemLanguage()
getSystemLanguage in interface Viewerpublic java.lang.String getSystemOverdubOrCaption()
getSystemOverdubOrCaption in interface Viewerpublic boolean getSystemRequired(java.lang.String prefix)
getSystemRequired in interface Viewerpublic int getSystemScreenWidth()
getSystemScreenWidth in interface Viewerpublic int getSystemScreenHeight()
getSystemScreenHeight in interface Viewerpublic int getSystemScreenDepth()
getSystemScreenDepth in interface Viewerpublic java.lang.String getSystemOverdubOrSubtitle()
getSystemOverdubOrSubtitle in interface Viewerpublic java.lang.String getSystemAudioDesc()
getSystemAudioDesc in interface Viewerpublic java.lang.String getSystemOperatingSystem()
getSystemOperatingSystem in interface Viewerpublic java.lang.String getSystemCPU()
getSystemCPU in interface Viewerpublic boolean getSystemComponent(java.lang.String component)
getSystemComponent in interface Viewerpublic boolean getPlayImage()
getPlayImage in interface Viewerpublic boolean getPlayAudio()
getPlayAudio in interface Viewerpublic boolean getPlayVideo()
getPlayVideo in interface Viewerpublic java.lang.String getTitle()
getTitle in interface Viewerpublic void setTitle(java.lang.String title)
setTitle in interface Viewertitle - Title for the presentationpublic boolean isHost()
Viewer
isHost in interface Viewer
public java.net.URL toURL(java.io.File file)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic Decorator getDecorator()
getDecorator in interface Viewer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||