|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
fi.hut.tml.xsmiles.mlfc.smil.viewer.awt.SMILViewer
This is a sample class that shows how to view a smil document and play it using awt.
NOTE: THIS VIEWER IS NOT COMPLETE AND WON'T WORK CORRECTLY.
| Nested Class Summary |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static long |
initMem
|
static long |
initTime
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
SMILViewer()
|
|
SMILViewer(java.lang.String url)
|
|
SMILViewer(java.net.URL url)
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Playback buttons. |
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()
Returns a new BrushHandler for SMIL core logic. |
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)
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()
|
int |
getSystemScreenHeight()
|
int |
getSystemScreenWidth()
|
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 |
void |
init(SMILViewer viewer,
java.io.Reader reader,
java.lang.String path)
|
boolean |
isHost()
SMILDoc requires this from the SMILMLFC, which may return true or false. |
static void |
main(java.lang.String[] args)
|
void |
run()
|
void |
setDocumentBaseURI(java.lang.String base)
|
void |
setTitle(java.lang.String t)
Set the title for the presentation. |
void |
start()
|
void |
stop()
|
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
Window closed. |
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.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static long initTime
public static long initMem
| Constructor Detail |
public SMILViewer()
public SMILViewer(java.net.URL url)
public SMILViewer(java.lang.String url)
| Method Detail |
public static void main(java.lang.String[] args)
public void init(SMILViewer viewer,
java.io.Reader reader,
java.lang.String path)
public void start()
public void stop()
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)
Viewer
getNewDrawingArea in interface Viewerpublic MediaHandler getNewForeignHandler(org.w3c.dom.Element e)
getNewForeignHandler 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 t)
setTitle in interface Viewert - Title for the presentationpublic boolean isHost()
Viewer
isHost in interface Viewerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated 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 void run()
run in interface java.lang.Runnablepublic Decorator getDecorator()
getDecorator in interface Viewer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||