|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectHScene
fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.SMILViewer
This is a sample class that shows how to view a smil document and play it using HAVi.
NOTE: THIS VIEWER IS NOT COMPLETE AND WON'T WORK CORRECTLY.
| Nested Class Summary | |
class |
SMILViewer.AA
|
class |
SMILViewer.BB
|
| Field Summary | |
protected static java.lang.String |
docPath
|
static HaviFocusManager |
focusManager
|
protected HGraphicButton |
guiback
|
protected HGraphicButton |
guiexit
|
protected HGraphicButton |
guistart
|
protected HGraphicButton |
guistop
|
protected HVisible |
guitest
|
protected HSinglelineEntry |
guiurl
|
protected java.util.Vector |
history
|
static int |
iconHeight
|
static long |
initMem
|
static long |
initTime
|
protected boolean |
jmfAvailable
|
protected java.awt.Container |
rootContainer
|
protected java.awt.Container |
rootlayoutContainer
|
static int |
screenDepth
|
static int |
screenHeight
|
static int |
screenWidth
|
protected SMILDocumentImpl |
smilDoc
|
protected HStaticText |
statusText
|
| Constructor Summary | |
SMILViewer()
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Playback buttons. |
void |
addFocusableLink(HNavigable link)
Add a link component to a focus list. |
void |
addTimePoint(java.lang.String elementId)
|
void |
caretMoved(HTextEvent e)
|
protected void |
createGUI()
|
void |
displayError(java.lang.String url,
java.lang.String errMsg)
|
void |
displayStatusText(java.lang.String url)
|
java.net.URL |
getBaseURL()
Return the base URL of the document. |
java.awt.Container |
getContentPane()
|
Decorator |
getDecorator()
|
BrushHandler |
getNewBrushHandler()
Returns a new BrushHandler for SMIL core logic. |
DrawingArea |
getNewDrawingArea(int type,
boolean block)
Returns a container for SMIL region elements. |
MediaHandler |
getNewForeignHandler(org.w3c.dom.Element e)
Returns a new ForeignHandler for SMIL core logic. |
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)
Returns the value of systemAttribute for the SMIL core logic. |
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)
Returns the value of systemAttribute for the SMIL core logic. |
int |
getSystemScreenDepth()
Returns screen depth for the SMILDocument. |
int |
getSystemScreenHeight()
Returns screen height for the SMILDocument. |
int |
getSystemScreenWidth()
Returns screen width 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)
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 |
init(SMILViewer viewer,
java.io.Reader reader,
java.lang.String path)
|
protected void |
initViewer(SMILDocumentImpl s)
|
boolean |
isHost()
SMILDoc requires this from the SMILMLFC, which may return true or false. |
protected boolean |
isJMFAvailable()
Check if JMF class is available. |
java.awt.Image |
loadImage(java.lang.String s)
|
static void |
main(java.lang.String[] args)
|
protected void |
openURL(java.lang.String url)
Open SMIL doc at url. |
protected void |
openURL(java.lang.String url,
java.lang.String errormsg)
Open ERROR doc at url, if errormsg != null. |
void |
Quit()
|
void |
removeFocusableLink(HNavigable link)
Remove a link component from a focus list. |
void |
setDocumentBaseURI(java.lang.String base)
|
void |
setTitle(java.lang.String t)
Set the title for the presentation. |
void |
start()
|
void |
stop()
|
void |
textChanged(HTextEvent e)
|
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.lang.String docPath
protected boolean jmfAvailable
protected HStaticText statusText
public static final int screenWidth
public static final int screenHeight
public static final int screenDepth
public static final int iconHeight
protected java.util.Vector history
public static HaviFocusManager focusManager
public static long initTime
public static long initMem
protected java.awt.Container rootContainer
protected HSinglelineEntry guiurl
protected java.awt.Container rootlayoutContainer
protected HGraphicButton guistart
protected HGraphicButton guistop
protected HGraphicButton guiexit
protected HGraphicButton guiback
protected HVisible guitest
protected SMILDocumentImpl smilDoc
| Constructor Detail |
public SMILViewer()
| Method Detail |
public static void main(java.lang.String[] args)
protected void createGUI()
public java.awt.Container getContentPane()
public void Quit()
public boolean init(SMILViewer viewer,
java.io.Reader reader,
java.lang.String path)
public void start()
public void stop()
protected void initViewer(SMILDocumentImpl s)
public java.net.URL getBaseURL()
getBaseURL in interface Viewerpublic void gotoExternalLink(java.lang.String url)
Viewer
gotoExternalLink in interface Viewerurl - URL to open
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 url)
displayStatusText in interface Viewerpublic MediaHandler getNewMediaHandler()
getNewMediaHandler in interface Viewerpublic BrushHandler getNewBrushHandler()
getNewBrushHandler in interface Viewerpublic LinkHandler getNewLinkHandler()
Viewer
getNewLinkHandler in interface Viewerpublic void setDocumentBaseURI(java.lang.String base)
setDocumentBaseURI in interface Viewerpublic SMILDocument getSMILDoc()
getSMILDoc in interface Viewer
public DrawingArea getNewDrawingArea(int type,
boolean block)
getNewDrawingArea in interface Viewerpublic void addFocusableLink(HNavigable link)
addFocusableLink in interface FocusableLinkHandlerlink - Link component, HNavigablepublic void removeFocusableLink(HNavigable link)
removeFocusableLink in interface FocusableLinkHandlerlink - Link component, HNavigablepublic MediaHandler getNewForeignHandler(org.w3c.dom.Element e)
getNewForeignHandler in interface Viewerpublic java.awt.Image loadImage(java.lang.String s)
public 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 t)
setTitle in interface Viewert - Title for the presentationpublic boolean isHost()
Viewer
isHost in interface Viewerprotected boolean isJMFAvailable()
public void textChanged(HTextEvent e)
public void caretMoved(HTextEvent e)
public void actionPerformed(java.awt.event.ActionEvent e)
protected void openURL(java.lang.String url)
protected void openURL(java.lang.String url,
java.lang.String errormsg)
public void displayError(java.lang.String url,
java.lang.String errMsg)
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened 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 | ||||||||||