|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
fi.hut.tml.xsmiles.dom.XSmilesElementImpl
fi.hut.tml.xsmiles.dom.VisualElementImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.SMILElementImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeControlImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.ElementBasicTimeImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeImpl
fi.hut.tml.xsmiles.mlfc.smil.extension.SMILAnimationImpl
SMILAnimationImpl is an abstract parent class, inherited by the animation elements. This class performs the basic animation for all animation elements. It uses AnimatedValue class to animate any attribute in any format. The real animation elements must override parse() and initArray() methods to return a correct type of AnimatedValue. Also, write() may be overridden to achieve custom write back to DOM.
| Nested Class Summary |
| Nested classes inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl |
XSmilesElementImpl.PseudoNodeList |
| Field Summary | |
protected java.lang.String |
attributeName
|
static short |
CALCMODE_DISCRETE
|
static short |
CALCMODE_LINEAR
|
static short |
CALCMODE_PACED
|
static short |
CALCMODE_SPLINE
|
protected long |
startTime
|
protected org.w3c.dom.Element |
target
|
| 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.SMILAnimation |
ACCUMULATE_NONE, ACCUMULATE_SUM, ADDITIVE_REPLACE, ADDITIVE_SUM |
| 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 |
| Fields inherited from interface org.w3c.dom.smil20.ElementTargetAttributes |
ATTRIBUTE_TYPE_AUTO, ATTRIBUTE_TYPE_CSS, ATTRIBUTE_TYPE_XML |
| Fields inherited from interface org.w3c.dom.smil20.XElementBasicTime |
RESTART_ALWAYS, RESTART_NEVER, RESTART_WHEN_NOT_ACTIVE |
| Constructor Summary | |
SMILAnimationImpl(org.apache.xerces.dom.DocumentImpl owner,
SMILDocumentImpl smil,
java.lang.String ns,
java.lang.String tag)
Constructor - set the owner |
|
| Method Summary | |
void |
activate()
Called when an animation is started. |
void |
closedown()
This closes this element. |
void |
deactivate()
Called when active duation for an animation element ends. |
short |
getAccumulate()
A code representing the value of the accumulate attribute, as defined above. |
short |
getAdditive()
A code representing the value of the additive attribute, as defined above. |
java.lang.String |
getAttributeName()
Get the attributeName value from the DOM. |
short |
getAttributeType()
Get the attributeType value from the DOM. |
java.lang.String |
getBy()
A DOMString representing the value of the by attribute. |
short |
getCalcMode()
A code representing the value of the calcMode attribute, as defined above. |
java.lang.String |
getFill()
A code representing the value of the fill attribute, as defined above. |
java.lang.String |
getFrom()
A DOMString representing the value of the from attribute. |
java.lang.String |
getKeySplines()
A DOMString representing the value of the keySplines
attribute. |
TimeList |
getKeyTimes()
A list of the time value of the keyTimes attribute. |
org.w3c.dom.Element |
getTargetElement()
Get the targetElement value from the DOM. |
java.lang.String |
getTo()
A DOMString representing the value of the to attribute. |
java.lang.String |
getValues()
A DOMString representing the value of the values
attribute. |
void |
init()
Initialize the animation element. |
abstract AnimatedValue[] |
initArray(int size)
Inits an empty array of AnimatedValues. |
abstract AnimatedValue |
parse(AnimationScheduler schudeler)
Abstract method to be overridden in the implementing class. |
abstract AnimatedValue |
parse(int val)
Abstract method to be overridden in the implementing class. |
abstract AnimatedValue |
parse(java.lang.String str)
Abstract method to be overridden in the implementing class. |
void |
setAccumulate(short accumulate)
|
void |
setAdditive(short additive)
|
void |
setAttributeName(java.lang.String s)
|
void |
setAttributeType(short s)
|
void |
setBy(java.lang.String by)
|
void |
setCalcMode(short calcMode)
|
void |
setFill(java.lang.String fill)
|
void |
setFrom(java.lang.String from)
|
void |
setKeySplines(java.lang.String keySplines)
|
void |
setKeyTimes(TimeList keyTimes)
|
void |
setTargetElement(org.w3c.dom.Element s)
|
void |
setTo(java.lang.String to)
|
void |
setValues(java.lang.String values)
|
void |
update(AnimationScheduler scheduler)
Updates the value of the animated attribute. |
void |
write(AnimationScheduler scheduler,
java.lang.String value)
This method may be overridden in the implementing class (see AnimateMotionElement). |
| 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.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 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.SMILElement |
destroy, getAlt, getClassName, getId, getLongdesc, getTitle, setAlt, setClassName, setId, setLongdesc, setTitle |
| 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 org.w3c.dom.smil20.XElementBasicTime |
destroy, freeze, getBegin, getCurrentIntervalBegin, getDur, getEnd, getMax, getMin, getRepeat, getRepeatCount, getRepeatDur, getRestart, getTimeInBodyTime, 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 fi.hut.tml.xsmiles.dom.VisualElement |
getStyle |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.PseudoClassController |
getPseudoClass, setPseudoClass |
| Field Detail |
protected long startTime
protected org.w3c.dom.Element target
protected java.lang.String attributeName
public static final short CALCMODE_DISCRETE
public static final short CALCMODE_LINEAR
public static final short CALCMODE_PACED
public static final short CALCMODE_SPLINE
| Constructor Detail |
public SMILAnimationImpl(org.apache.xerces.dom.DocumentImpl owner,
SMILDocumentImpl smil,
java.lang.String ns,
java.lang.String tag)
| Method Detail |
public void init()
init in interface SMILElementinit in class ElementBasicTimeImplpublic void activate()
activate in interface XElementBasicTimeactivate in class ElementBasicTimeImplpublic void deactivate()
deactivate in interface XElementBasicTimedeactivate in class ElementBasicTimeImplpublic void closedown()
closedown in interface XElementBasicTimeclosedown in class ElementBasicTimeImplpublic abstract AnimatedValue parse(java.lang.String str)
str - DOM value to be parsedpublic abstract AnimatedValue parse(AnimationScheduler schudeler)
public abstract AnimatedValue parse(int val)
val - Value to be convertedpublic abstract AnimatedValue[] initArray(int size)
public void write(AnimationScheduler scheduler,
java.lang.String value)
scheduler - AnimationScheduler, holding "DOM buffer"value - String value to be set to the "DOM buffer"public void update(AnimationScheduler scheduler)
This method should be optimized - now it may call f() several times.
scheduler - AnimationScheduler, scheduler is used to access (read/write)
the target's DOM valuespublic short getAttributeType()
getAttributeType in interface ElementTargetAttributespublic void setAttributeType(short s)
setAttributeType in interface ElementTargetAttributespublic org.w3c.dom.Element getTargetElement()
getTargetElement in interface ElementTargetAttributespublic void setTargetElement(org.w3c.dom.Element s)
setTargetElement in interface ElementTargetAttributespublic java.lang.String getAttributeName()
getAttributeName in interface ElementTargetAttributespublic void setAttributeName(java.lang.String s)
setAttributeName in interface ElementTargetAttributespublic short getAdditive()
ADDITIVE_REPLACE .
getAdditive in interface SMILAnimationorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setAdditive(short additive)
throws org.w3c.dom.DOMException
setAdditive in interface SMILAnimationorg.w3c.dom.DOMExceptionpublic short getAccumulate()
ACCUMULATE_NONE .
getAccumulate in interface SMILAnimationorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setAccumulate(short accumulate)
throws org.w3c.dom.DOMException
setAccumulate in interface SMILAnimationorg.w3c.dom.DOMExceptionpublic short getCalcMode()
getCalcMode in interface SMILAnimationorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setCalcMode(short calcMode)
throws org.w3c.dom.DOMException
setCalcMode in interface SMILAnimationorg.w3c.dom.DOMExceptionpublic java.lang.String getKeySplines()
DOMString representing the value of the keySplines
attribute. Need an interface a point (x1,y1,x2,y2)
getKeySplines in interface SMILAnimationorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setKeySplines(java.lang.String keySplines)
throws org.w3c.dom.DOMException
setKeySplines in interface SMILAnimationorg.w3c.dom.DOMExceptionpublic TimeList getKeyTimes()
getKeyTimes in interface SMILAnimationorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setKeyTimes(TimeList keyTimes)
throws org.w3c.dom.DOMException
setKeyTimes in interface SMILAnimationorg.w3c.dom.DOMExceptionpublic java.lang.String getValues()
DOMString representing the value of the values
attribute.
getValues in interface SMILAnimationorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setValues(java.lang.String values)
throws org.w3c.dom.DOMException
setValues in interface SMILAnimationorg.w3c.dom.DOMExceptionpublic java.lang.String getFrom()
DOMString representing the value of the from attribute.
getFrom in interface SMILAnimationorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setFrom(java.lang.String from)
throws org.w3c.dom.DOMException
setFrom in interface SMILAnimationorg.w3c.dom.DOMExceptionpublic java.lang.String getTo()
DOMString representing the value of the to attribute.
getTo in interface SMILAnimationorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setTo(java.lang.String to)
throws org.w3c.dom.DOMException
setTo in interface SMILAnimationorg.w3c.dom.DOMExceptionpublic java.lang.String getBy()
DOMString representing the value of the by attribute.
getBy in interface SMILAnimationorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setBy(java.lang.String by)
throws org.w3c.dom.DOMException
setBy in interface SMILAnimationorg.w3c.dom.DOMExceptionpublic java.lang.String getFill()
FILL_REMOVE .
getFill in interface SMILAnimationgetFill in class ElementBasicTimeImplorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setFill(java.lang.String fill)
throws org.w3c.dom.DOMException
setFill in interface SMILAnimationorg.w3c.dom.DOMException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||