org.thdl.media
Class SmartJMFPlayer

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--org.thdl.media.SmartMoviePanel
                          |
                          +--org.thdl.media.SmartJMFPlayer
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class SmartJMFPlayer
extends SmartMoviePanel

See Also:
Serialized Form

Field Summary
private  Component controlComponent
           
private  boolean isCached
           
private  boolean isMediaAudio
           
private  boolean isRealized
           
private  boolean isSized
           
 URL mediaURL
           
private  Panel panel
           
private  Container parent
           
private  Time pauseTime
           
private  Player player
           
private  Time stopTime
           
private  Timer timer
           
private  Float to
           
private  Component visualComponent
           
private  JPanel vPanel
           
 
Fields inherited from class org.thdl.media.SmartMoviePanel
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
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
SmartJMFPlayer()
           
SmartJMFPlayer(Container p, URL sound)
           
 
Method Summary
 void cmd_playOn()
           
 void cmd_playSegment(Integer from, Integer to)
           
 void cmd_stop()
           
 void controllerUpdate(ControllerEvent event)
           
 void destroy()
           
 void displayBorders(boolean borders)
           
 void displayController(boolean controller)
           
 int getCurrentTime()
           
 int getEndTime()
           
 String getIdentifyingName()
           
 URL getMediaURL()
           
 boolean isInitialized()
           
 boolean isPlaying()
           
 void loadMovie(URL sound)
           
 void setParentContainer(Container c)
           
private  void showMediaComponent()
           
private  void start()
           
 
Methods inherited from class org.thdl.media.SmartMoviePanel
addAnnotationPlayer, cancelAnnotationTimer, cmd_firstS, cmd_isID, cmd_playFrom, cmd_playS, initForSavant, launchAnnotationTimer, removeAllAnnotationPlayers, removeAnnotationPlayer
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, 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

mediaURL

public URL mediaURL

player

private Player player

visualComponent

private Component visualComponent

controlComponent

private Component controlComponent

panel

private Panel panel

vPanel

private JPanel vPanel

parent

private Container parent

timer

private Timer timer

stopTime

private Time stopTime

pauseTime

private Time pauseTime

isMediaAudio

private boolean isMediaAudio

isSized

private boolean isSized

isRealized

private boolean isRealized

isCached

private boolean isCached

to

private Float to
Constructor Detail

SmartJMFPlayer

public SmartJMFPlayer()

SmartJMFPlayer

public SmartJMFPlayer(Container p,
                      URL sound)
               throws SmartMoviePanelException
Method Detail

getIdentifyingName

public String getIdentifyingName()
Specified by:
getIdentifyingName in class SmartMoviePanel

getMediaURL

public URL getMediaURL()
Specified by:
getMediaURL in class SmartMoviePanel

loadMovie

public void loadMovie(URL sound)
               throws SmartMoviePanelException
Specified by:
loadMovie in class SmartMoviePanel
SmartMoviePanelException

setParentContainer

public void setParentContainer(Container c)
Specified by:
setParentContainer in class SmartMoviePanel

destroy

public void destroy()
             throws SmartMoviePanelException
Specified by:
destroy in class SmartMoviePanel
SmartMoviePanelException

start

private void start()

displayBorders

public void displayBorders(boolean borders)
                    throws SmartMoviePanelException
Specified by:
displayBorders in class SmartMoviePanel
SmartMoviePanelException

displayController

public void displayController(boolean controller)
                       throws SmartMoviePanelException
Specified by:
displayController in class SmartMoviePanel
SmartMoviePanelException

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in class SmartMoviePanel

showMediaComponent

private void showMediaComponent()

controllerUpdate

public void controllerUpdate(ControllerEvent event)

cmd_stop

public void cmd_stop()
              throws SmartMoviePanelException
Specified by:
cmd_stop in class SmartMoviePanel
SmartMoviePanelException

cmd_playOn

public void cmd_playOn()
                throws SmartMoviePanelException
Specified by:
cmd_playOn in class SmartMoviePanel
SmartMoviePanelException

cmd_playSegment

public void cmd_playSegment(Integer from,
                            Integer to)
                     throws SmartMoviePanelException
Specified by:
cmd_playSegment in class SmartMoviePanel
SmartMoviePanelException

isPlaying

public boolean isPlaying()
Specified by:
isPlaying in class SmartMoviePanel

getCurrentTime

public int getCurrentTime()
Specified by:
getCurrentTime in class SmartMoviePanel

getEndTime

public int getEndTime()
Specified by:
getEndTime in class SmartMoviePanel


These API docs were created 02/02/2003 08:20 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by SourceForge_Logo