fi.hut.tml.xsmiles.mlfc.smil.basic
Class ElementSequentialTimeContainerImpl

java.lang.Object
  extended byorg.apache.xerces.dom.NodeImpl
      extended byorg.apache.xerces.dom.ChildNode
          extended byorg.apache.xerces.dom.ParentNode
              extended byorg.apache.xerces.dom.ElementImpl
                  extended byorg.apache.xerces.dom.ElementNSImpl
                      extended byfi.hut.tml.xsmiles.dom.XSmilesElementImpl
                          extended byfi.hut.tml.xsmiles.dom.VisualElementImpl
                              extended byfi.hut.tml.xsmiles.mlfc.smil.basic.SMILElementImpl
                                  extended byfi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeControlImpl
                                      extended byfi.hut.tml.xsmiles.mlfc.smil.basic.ElementBasicTimeImpl
                                          extended byfi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeImpl
                                              extended byfi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeContainerImpl
                                                  extended byfi.hut.tml.xsmiles.mlfc.smil.basic.ElementSequentialTimeContainerImpl
All Implemented Interfaces:
java.lang.Cloneable, CSSStyleChangeListener, org.w3c.dom.Element, ElementSequentialTimeContainer, ElementTime, ElementTimeContainer, ElementTimeControl, org.w3c.dom.events.EventListener, org.w3c.dom.events.EventTarget, InitializableElement, org.w3c.dom.Node, org.w3c.dom.NodeList, PseudoClassController, ResourceFetcher, java.io.Serializable, SMILElement, StylableElement, org.w3c.dom.TypeInfo, VisualElement, XElementBasicTime, XSmilesLayoutReference
Direct Known Subclasses:
SMILBodyElementImpl, SMILSeqElementImpl

public class ElementSequentialTimeContainerImpl
extends ElementTimeContainerImpl
implements ElementSequentialTimeContainer

A seq container defines a sequence of elements in which elements play one after the other.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl
XSmilesElementImpl.PseudoNodeList
 
Field Summary
protected  long totalChildDuration
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.ElementBasicTimeImpl
accActiveDuration, activateTime, activeDuration, beginTime, clipBeginTime, currentIntervalBegin, currentIntervalEnd, elementForceStartTime, manualRepeat, previousIntervalBegin, previousIntervalEnd, repeatIteration, repeatTime, startupTime, state, STATE_AFTERPLAY, STATE_DESTROYED, STATE_IDLE, STATE_PLAY, STATE_PREFETCHED, STATE_UNINIT, STATE_WAIT, TIMER_ACTIVATE, TIMER_DEACTIVATE, TIMER_SIMPLEDUR, zero
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.SMILElementImpl
smilDoc
 
Fields inherited from class fi.hut.tml.xsmiles.dom.VisualElementImpl
views
 
Fields inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl
DESTROYED, elementStatus, INITIALIZED, INITIALIZING, setPseudoClasses, style, UNINITIALIZED, xblpropname
 
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURI
 
Fields inherited from class org.apache.xerces.dom.ElementImpl
attributes, name
 
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
 
Fields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSibling
 
Fields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE, UNNORMALIZED
 
Fields inherited from interface org.w3c.dom.smil20.ElementTimeContainer
FILL_FREEZE, FILL_REMOVE
 
Fields inherited from interface org.w3c.dom.smil20.ElementTime
FILLDEFAULT_AUTO, FILLDEFAULT_FREEZE, FILLDEFAULT_HOLD, FILLDEFAULT_INHERIT, FILLDEFAULT_REMOVE, FILLDEFAULT_TRANSITION, RESTARTDEFAULT_ALWAYS, RESTARTDEFAULT_INHERIT, RESTARTDEFAULT_NEVER, RESTARTDEFAULT_WHEN_NOT_ACTIVE, SYNCBEHAVIOR_CAN_SLIP, SYNCBEHAVIOR_DEFAULT, SYNCBEHAVIOR_INDEPENDENT, SYNCBEHAVIOR_LOCKED, SYNCBEHAVIORDEFAULT_CAN_SLIP, SYNCBEHAVIORDEFAULT_INDEPENDENT, SYNCBEHAVIORDEFAULT_INHERIT, SYNCBEHAVIORDEFAULT_LOCKED
 
Fields inherited from interface org.w3c.dom.smil20.XElementBasicTime
RESTART_ALWAYS, RESTART_NEVER, RESTART_WHEN_NOT_ACTIVE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
ElementSequentialTimeContainerImpl(org.apache.xerces.dom.DocumentImpl owner, SMILDocumentImpl smil, java.lang.String ns, java.lang.String name)
          Constructor - Set the owner and name.
 
Method Summary
 void activate()
          ACTIVE TIME - playing an interval.
 void childEnded(long childDuration)
          This is called from the child to tell that it has ended.
 void destroy()
          This uninitializes the element.
 long getTimeInBodyTime(long t)
          Returns time in body time space,
 boolean isChildStartable(ElementBasicTimeImpl child)
          Checks if this child is startable - i.e.
 void repeat(long time)
          Repeat the element - if simpleDur ended or childEnded or mediaEnded.
 void resolveSeekTime(ElementBasicTimeImpl child)
          HACK to resolve seek times for links.
 void simpleDurEnded()
          This is called when simple duration for this element is ended.
 void startChildren()
          Start children one by one.
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeContainerImpl
getAbstractAttr, getActiveChildrenAt, getAuthor, getCopyright, getFill, getRegion, setAbstractAttr, setAuthor, setCopyright, setFill, setRegion
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeImpl
getFillDefault, getRestartDefault, getSyncBehavior, getSyncBehaviorDefault, getSyncTolerance, getSyncToleranceDefault, setFillDefault, setRestartDefault, setSyncBehavior, setSyncBehaviorDefault, setSyncTolerance, setSyncToleranceDefault
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.ElementBasicTimeImpl
ACAdd, addIntervalBeginListener, addIntervalEndListener, addNewIntervalListener, addTime, beginElement, beginElementAt, closeChildren, closedown, computeSimpleDuration, deactivate, defaultBegin, display, endElement, endElementAt, freeze, getBegin, getBeginList, getCurrentIntervalBegin, getCurrentIntervalEnd, getCurrentParentTime, getDur, getEnd, getEndList, getMax, getMin, getRepeat, getRepeatCount, getRepeatDur, getRestart, getState, getTimeChildren, getTimeInParentTime, hasStarted, immediateIntervalEnd, init, isActive, isResolved, isStartable, mediaEnded, notifyBeginListeners, notifyEndListeners, notifyNewIntervalListeners, prefetch, reevaluateIntervalBegin, reevaluateIntervalEnd, remove, removeFreeze, repeatRemoveFreeze, restartelement, restartelementparent, setBegin, setCurrentIntervalBegin, setCurrentIntervalEnd, setDur, setEnd, setForceStartTime, setMax, setMin, setRepeat, setRepeatCount, setRepeatDur, setRestart, startup, timeContainerHasEnded
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeControlImpl
getShadowElement, getStyleAttrValue, getStyleString, pauseElement, resumeElement, seekElement
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.SMILElementImpl
dispatch, getAlt, getClassName, getId, getLongdesc, getOwnerDoc, getSMILDoc, getTitle, setAlt, setClassName, setId, setLongdesc, setTitle
 
Methods inherited from class fi.hut.tml.xsmiles.dom.VisualElementImpl
addView, belongsToTree, getViews, handleEvent, insertBefore, isCurrentlyVisible, isFocusPoint, isPseudoClass, isVisibleByCSSProperties, notifyPseudoRemoved, removeAllViews, removeAttribute, removeChild, replaceChild, setAttribute, setStatus, styleChanged, updateViews
 
Methods inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl
addBinding, addUndistributedChild, clone, clonePseudoElements, cloneSubtree, debugNode, debugNode, dispatchEventInMainThread, get, getApplyBindingSheets, getAuthorSheets, getChildNodes, getElementStatus, getOriginalClone, getPseudoClass, getResourceReferencer, getRuleNode, getStyle, getText, getText, getUndistributedChildNodes, getXblImplementations, hasBinding, hasStyle, initFinalFlattenedTree, initStyle, isInitedForReset, removeBinding, removeUndistributedChild, replaceNode, resetFinalFlattenedTree, resolveURI, searchElementWithId, searchElementWithId, setApplyBindingSheets, setAuthorSheets, setPseudoClass, setRuleNode, setStyle, updateStyle
 
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, setPrefix, setType, setValues
 
Methods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttributeNode, removeAttributeNS, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
 
Methods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
 
Methods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
 
Methods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.smil20.ElementTimeContainer
getAbstractAttr, getActiveChildrenAt, getAuthor, getCopyright, getFill, getRegion, getTimeChildren, setAbstractAttr, setAuthor, setCopyright, setFill, setRegion
 
Methods inherited from interface org.w3c.dom.smil20.ElementTime
getFillDefault, getRestartDefault, getSyncBehavior, getSyncBehaviorDefault, getSyncTolerance, getSyncToleranceDefault, setFillDefault, setRestartDefault, setSyncBehavior, setSyncBehaviorDefault, setSyncTolerance, setSyncToleranceDefault
 
Methods inherited from interface org.w3c.dom.smil20.XElementBasicTime
closedown, deactivate, freeze, getBegin, getCurrentIntervalBegin, getDur, getEnd, getMax, getMin, getRepeat, getRepeatCount, getRepeatDur, getRestart, hasStarted, isActive, prefetch, setBegin, setDur, setEnd, setMax, setMin, setRepeat, setRepeatCount, setRepeatDur, setRestart, startup
 
Methods inherited from interface org.w3c.dom.smil20.ElementTimeControl
beginElement, beginElementAt, endElement, endElementAt, pauseElement, resumeElement, seekElement
 
Methods inherited from interface fi.hut.tml.xsmiles.dom.StylableElement
getRuleNode, getStyle, hasStyle, isPseudoClass, setRuleNode, setStyle
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 
Methods inherited from interface fi.hut.tml.xsmiles.dom.VisualElement
getStyle
 
Methods inherited from interface fi.hut.tml.xsmiles.dom.PseudoClassController
getPseudoClass, setPseudoClass
 

Field Detail

totalChildDuration

protected long totalChildDuration
Constructor Detail

ElementSequentialTimeContainerImpl

public ElementSequentialTimeContainerImpl(org.apache.xerces.dom.DocumentImpl owner,
                                          SMILDocumentImpl smil,
                                          java.lang.String ns,
                                          java.lang.String name)
Constructor - Set the owner and name.

Method Detail

resolveSeekTime

public void resolveSeekTime(ElementBasicTimeImpl child)
HACK to resolve seek times for links. In Seq, set the activeChild.

Overrides:
resolveSeekTime in class ElementBasicTimeImpl

activate

public void activate()
Description copied from interface: XElementBasicTime
ACTIVE TIME - playing an interval. This is called to activate the element - after begin time has been reached. This sets the element to 'play' state.

Specified by:
activate in interface XElementBasicTime
Overrides:
activate in class ElementBasicTimeImpl

simpleDurEnded

public void simpleDurEnded()
Description copied from class: ElementBasicTimeImpl
This is called when simple duration for this element is ended. This repeats the media.

Overrides:
simpleDurEnded in class ElementBasicTimeImpl

repeat

public void repeat(long time)
Description copied from class: ElementBasicTimeImpl
Repeat the element - if simpleDur ended or childEnded or mediaEnded.

Overrides:
repeat in class ElementBasicTimeImpl

startChildren

public void startChildren()
Start children one by one.

Overrides:
startChildren in class ElementBasicTimeImpl

isChildStartable

public boolean isChildStartable(ElementBasicTimeImpl child)
Checks if this child is startable - i.e. if the child's parent is active and that this child is the active child. This is used to prevent syncbased elements responding if not active.

Overrides:
isChildStartable in class ElementBasicTimeImpl

childEnded

public void childEnded(long childDuration)
This is called from the child to tell that it has ended.

Specified by:
childEnded in interface ElementTimeContainer
Overrides:
childEnded in class ElementBasicTimeImpl
Parameters:
childDuration - Duration of the child element

destroy

public void destroy()
Description copied from interface: XElementBasicTime
This uninitializes the element. All memory should be freed and the element cannot be used anymore after calling this method.

Specified by:
destroy in interface XElementBasicTime
Overrides:
destroy in class ElementBasicTimeImpl

getTimeInBodyTime

public long getTimeInBodyTime(long t)
Returns time in body time space,

Specified by:
getTimeInBodyTime in interface XElementBasicTime
Overrides:
getTimeInBodyTime in class ElementBasicTimeImpl
Parameters:
t - Time to convert, in millisecs
Returns:
time in body time, in millisecs


X-Smiles 1.2