org.thdl.media
Class SmartMoviePanel

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

public abstract class SmartMoviePanel
extends Panel

See Also:
Serialized Form

Field Summary
private  Timer annTimer
           
private  Hashtable hashEnd
           
private  Hashtable hashStart
           
private  EventListenerList listenerList
           
private  Vector orderEndID
           
private  Vector orderStartID
           
private  Stack pileEnd
           
private  Stack pileStart
           
 
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
SmartMoviePanel(GridLayout layout)
           
 
Method Summary
 void addAnnotationPlayer(org.thdl.savant.AnnotationPlayer ap)
           
 void cancelAnnotationTimer()
           
 String cmd_firstS()
           
 boolean cmd_isID(String theID)
           
private  void cmd_nextEvent()
           
 void cmd_playFrom(String fromID)
           
abstract  void cmd_playOn()
           
 void cmd_playS(String fromID)
           
abstract  void cmd_playSegment(Integer startTime, Integer stopTime)
           
abstract  void cmd_stop()
           
abstract  void destroy()
           
abstract  void displayBorders(boolean borders)
           
abstract  void displayController(boolean controller)
           
private  void fireStartAnnotation(String id)
           
private  void fireStopAnnotation(String id)
           
abstract  int getCurrentTime()
           
abstract  int getEndTime()
           
abstract  String getIdentifyingName()
           
abstract  URL getMediaURL()
           
private  int getMinusEnd(Vector v)
           
private  int getMinusStart(Vector v)
           
 void initForSavant(String starts, String ends, String ids)
           
abstract  boolean isInitialized()
           
abstract  boolean isPlaying()
           
 void launchAnnotationTimer()
           
abstract  void loadMovie(URL mediaUrl)
           
 void removeAllAnnotationPlayers()
           
 void removeAnnotationPlayer(org.thdl.savant.AnnotationPlayer ap)
           
private  void remplisPileStart(Integer start, Integer end)
           
abstract  void setParentContainer(Container c)
           
private  void vide_Pile()
           
 
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

listenerList

private EventListenerList listenerList

orderStartID

private Vector orderStartID

orderEndID

private Vector orderEndID

pileStart

private Stack pileStart

pileEnd

private Stack pileEnd

hashStart

private Hashtable hashStart

hashEnd

private Hashtable hashEnd

annTimer

private Timer annTimer
Constructor Detail

SmartMoviePanel

public SmartMoviePanel(GridLayout layout)
Method Detail

addAnnotationPlayer

public void addAnnotationPlayer(org.thdl.savant.AnnotationPlayer ap)

removeAnnotationPlayer

public void removeAnnotationPlayer(org.thdl.savant.AnnotationPlayer ap)

removeAllAnnotationPlayers

public void removeAllAnnotationPlayers()

fireStartAnnotation

private void fireStartAnnotation(String id)

fireStopAnnotation

private void fireStopAnnotation(String id)

initForSavant

public void initForSavant(String starts,
                          String ends,
                          String ids)

cmd_firstS

public String cmd_firstS()

getMinusStart

private int getMinusStart(Vector v)

getMinusEnd

private int getMinusEnd(Vector v)

cmd_isID

public boolean cmd_isID(String theID)

cmd_playFrom

public void cmd_playFrom(String fromID)

cmd_playS

public void cmd_playS(String fromID)

launchAnnotationTimer

public void launchAnnotationTimer()

cancelAnnotationTimer

public void cancelAnnotationTimer()

cmd_nextEvent

private void cmd_nextEvent()

vide_Pile

private void vide_Pile()

remplisPileStart

private void remplisPileStart(Integer start,
                              Integer end)

getIdentifyingName

public abstract String getIdentifyingName()

getMediaURL

public abstract URL getMediaURL()

setParentContainer

public abstract void setParentContainer(Container c)

displayBorders

public abstract void displayBorders(boolean borders)
                             throws SmartMoviePanelException
SmartMoviePanelException

displayController

public abstract void displayController(boolean controller)
                                throws SmartMoviePanelException
SmartMoviePanelException

loadMovie

public abstract void loadMovie(URL mediaUrl)
                        throws SmartMoviePanelException
SmartMoviePanelException

cmd_playOn

public abstract void cmd_playOn()
                         throws SmartMoviePanelException
SmartMoviePanelException

cmd_playSegment

public abstract void cmd_playSegment(Integer startTime,
                                     Integer stopTime)
                              throws SmartMoviePanelException
SmartMoviePanelException

cmd_stop

public abstract void cmd_stop()
                       throws SmartMoviePanelException
SmartMoviePanelException

isInitialized

public abstract boolean isInitialized()

isPlaying

public abstract boolean isPlaying()

getCurrentTime

public abstract int getCurrentTime()

getEndTime

public abstract int getEndTime()

destroy

public abstract void destroy()
                      throws SmartMoviePanelException
SmartMoviePanelException


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