Package org.loboevolution.svg.dom
Class SVGAnimationImpl
java.lang.Object
org.loboevolution.svg.dom.SVGElementWrapper
org.loboevolution.svg.dom.SVGElementImpl
org.loboevolution.svg.dom.SVGAnimationImpl
- All Implemented Interfaces:
EventTarget,HTMLElement,ElementTargetAttributes,ElementTime,ElementTimeControl,SMILAnimation,SMILElement,Element,InnerHTML,ModelNode,Node,NonDocumentTypeChildNode,ParentNode,SVGElement
- Direct Known Subclasses:
SVGAnimationElementImpl
SVGAnimationImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.html.dom.smil.ElementTargetAttributes
ATTRIBUTE_TYPE_AUTO, ATTRIBUTE_TYPE_CSS, ATTRIBUTE_TYPE_XMLFields inherited from interface org.loboevolution.html.dom.smil.ElementTime
FILL_FREEZE, FILL_REMOVE, RESTART_ALWAYS, RESTART_NEVER, RESTART_WHEN_NOT_ACTIVEFields inherited from interface org.loboevolution.html.node.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODEFields inherited from interface org.loboevolution.html.dom.smil.SMILAnimation
ACCUMULATE_NONE, ACCUMULATE_SUM, ADDITIVE_REPLACE, ADDITIVE_SUM, CALCMODE_DISCRETE, CALCMODE_LINEAR, CALCMODE_PACED, CALCMODE_SPLINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCauses this element to begin the local timeline (subject to sync constraints).booleanbeginElementAt(float offset) Causes this element to begin the local timeline (subject to sync constraints), at the passed offset from the current time when the method is called.booleanCauses this element to end the local timeline (subject to sync constraints).booleanendElementAt(float offset) Causes this element to end the local timeline (subject to sync constraints) at the specified offset from the current time when the method is called.protected SVGAnimateImplGetter for the field animate.The name of the target attribute.shortA code representing the value of the attributeType attribute, as defined above.getBegin()The desired value (as a list of times) of the begin instant of this node.getBy()A DOMString representing the value of the by attribute.floatgetDur()The desired simple duration value of this node in seconds.getEnd()The list of active ends for this node.getFill()A code representing the value of the fill attribute, as defined above.getFrom()A DOMString representing the value of the from attribute.floatThe repeatCount attribute causes the element to play repeatedly (loop) for the specified number of times.floatThe repeatDur causes the element to play repeatedly (loop) for the specified duration in milliseconds.getTo()A DOMString representing the value of the to attribute.shortgetType()getType.A DOMString representing the value of the values attribute.protected voidsetAnimate(SVGAnimateImpl animate) Setter for the field animate.voidsetAttributeName(String attributeName) setAttributeName.voidsetAttributeType(short attributeType) setAttributeType.voidsetBy.voidsetDur(float dur) setDur.voidsetFill.voidsetFrom.voidsetRepeatCount(float repeatCount) setRepeatCount.voidsetRepeatDur(float repeatDur) setRepeatDur.voidsetTo.voidsetValues.Methods inherited from class org.loboevolution.svg.dom.SVGElementImpl
getExternalResourcesRequired, getOwnerSVGElement, getRequiredExtensions, getRequiredFeatures, getSystemLanguage, getViewportElement, getXMLlang, getXMLspace, hasExtension, setOwnerSVGElement, setXMLlang, setXMLspaceMethods inherited from class org.loboevolution.svg.dom.SVGElementWrapper
addEventListener, addEventListener, appendChild, appendChildrenToCollectionImpl, click, cloneNode, cloneNode, closest, compareDocumentPosition, contains, dispatchEvent, dispatchEvent, extractDescendentsArrayImpl, findUINode, forgetRenderState, getAccessKey, getAccessKeyLabel, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAutocapitalize, getBaseURI, getBoundingClientRect, getChildElementCount, getChildNodes, getChildren, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getContentEditable, getCurrentStyle, getDir, getDocumentItem, getDocumentNode, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getFirstElementChild, getFullURL, getId, getInnerHTML, getInnerText, getLang, getLastChild, getLastElementChild, getLocalName, getNamespaceURI, getNextElementSibling, getNextSibling, getNextTo, getNodeName, getNodeType, getNodeValue, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getOuterHTML, getOwnerDocument, getParentElement, getParentModelNode, getParentNode, getPrefix, getPreviousElementSibling, getPreviousSibling, getPreviousTo, getRenderState, getRootNode, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSlot, getStyle, getTagName, getTextContent, getTitle, getUserData, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, insertBefore, isDefaultNamespace, isDraggable, isEqualNode, isEqualOrDescendentOf, isHidden, isIsConnected, isSameNode, isSpellcheck, isSupported, isTranslate, lookupNamespaceURI, lookupPrefix, matches, normalize, prepend, prependChild, querySelector, querySelectorAll, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeEventListener, removeEventListener, replaceChild, requestPointerLock, scroll, scrollBy, scrollIntoView, scrollIntoView, scrollTo, setAccessKey, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAutocapitalize, setClassName, setContentEditable, setDir, setDocumentItem, setDraggable, setHidden, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerHTML, setInnerText, setLang, setNamespaceURI, setNodeValue, setOuterHTML, setOwnerDocument, setOwnerDocument, setParentImpl, setPointerCapture, setPrefix, setScrollLeft, setScrollTop, setSlot, setSpellcheck, setTextContent, setTitle, setTranslate, setUserData, toggleAttribute, toggleAttribute, visit, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.loboevolution.html.node.Element
closest, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getInnerHTML, getLocalName, getNamespaceURI, getOuterHTML, getPrefix, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSlot, getTagName, hasAttribute, hasAttributeNS, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, matches, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, requestPointerLock, scroll, scrollBy, scrollIntoView, scrollIntoView, scrollTo, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOuterHTML, setPointerCapture, setScrollLeft, setScrollTop, setSlot, toggleAttribute, toggleAttributeMethods inherited from interface org.loboevolution.html.dom.smil.ElementTime
getRestart, pauseElement, resumeElement, seekElement, setBegin, setEnd, setRestartMethods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListenerMethods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTMLMethods inherited from interface org.loboevolution.html.node.ModelNode
getDocumentItem, getFullURL, getParentModelNode, getRenderState, isEqualOrDescendentOf, setDocumentItem, warnMethods inherited from interface org.loboevolution.html.node.Node
appendChild, appendChildrenToCollectionImpl, cloneNode, cloneNode, compareDocumentPosition, contains, extractDescendentsArrayImpl, findUINode, forgetRenderState, getAttributes, getBaseURI, getChildNodes, getDocumentNode, getFeature, getFirstChild, getLastChild, getNextSibling, getNextTo, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getPreviousTo, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNamespaceURI, setNodeValue, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setTextContent, setUserData, visitMethods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSiblingMethods inherited from interface org.loboevolution.html.node.ParentNode
getChildElementCount, getChildren, getFirstElementChild, getLastElementChild, querySelector, querySelectorAllMethods inherited from interface org.loboevolution.html.dom.smil.SMILAnimation
getAccumulate, getAdditive, getCalcMode, getKeySplines, getKeyTimes, setAccumulate, setAdditive, setCalcMode, setKeySplines, setKeyTimesMethods inherited from interface org.loboevolution.html.dom.smil.SMILElement
getId, setIdMethods inherited from interface org.loboevolution.svg.SVGElement
getId, setId
-
Constructor Details
-
SVGAnimationImpl
Constructor for SVGAnimationImpl.
- Parameters:
element- aHTMLElementobject.
-
-
Method Details
-
getAttributeName
The name of the target attribute.- Specified by:
getAttributeNamein interfaceElementTargetAttributes- Returns:
- a
Stringobject.
-
setAttributeName
setAttributeName.
- Specified by:
setAttributeNamein interfaceElementTargetAttributes- Parameters:
attributeName- aStringobject.
-
getType
public short getType()getType.
- Returns:
- a short.
-
getAttributeType
public short getAttributeType()A code representing the value of the attributeType attribute, as defined above. Default value is ATTRIBUTE_TYPE_CODE .- Specified by:
getAttributeTypein interfaceElementTargetAttributes- Returns:
- a short.
-
setAttributeType
public void setAttributeType(short attributeType) setAttributeType.
- Specified by:
setAttributeTypein interfaceElementTargetAttributes- Parameters:
attributeType- a short.
-
getBegin
The desired value (as a list of times) of the begin instant of this node.- Specified by:
getBeginin interfaceElementTime- Returns:
- a
TimeListobject.
-
getEnd
The list of active ends for this node.- Specified by:
getEndin interfaceElementTime- Returns:
- a
TimeListobject.
-
getDur
public float getDur()The desired simple duration value of this node in seconds. Negative value means "indefinite".- Specified by:
getDurin interfaceElementTime- Returns:
- a float.
-
setDur
public void setDur(float dur) setDur.
- Specified by:
setDurin interfaceElementTime- Parameters:
dur- a float.
-
getFill
A code representing the value of the fill attribute, as defined above. Default value is FILL_REMOVE .- Specified by:
getFillin interfaceElementTime- Returns:
- a
Stringobject.
-
setFill
setFill.
- Specified by:
setFillin interfaceElementTime- Parameters:
fill- aStringobject.
-
getRepeatCount
public float getRepeatCount()The repeatCount attribute causes the element to play repeatedly (loop) for the specified number of times. A negative value repeat the element indefinitely. Default value is 0 (unspecified).- Specified by:
getRepeatCountin interfaceElementTime- Returns:
- a float.
-
setRepeatCount
public void setRepeatCount(float repeatCount) setRepeatCount.
- Specified by:
setRepeatCountin interfaceElementTime- Parameters:
repeatCount- a float.
-
getRepeatDur
public float getRepeatDur()The repeatDur causes the element to play repeatedly (loop) for the specified duration in milliseconds. Negative means "indefinite".- Specified by:
getRepeatDurin interfaceElementTime- Returns:
- a float.
-
setRepeatDur
public void setRepeatDur(float repeatDur) setRepeatDur.
- Specified by:
setRepeatDurin interfaceElementTime- Parameters:
repeatDur- a float.
-
beginElement
public boolean beginElement()Causes this element to begin the local timeline (subject to sync constraints).- Specified by:
beginElementin interfaceElementTime- Specified by:
beginElementin interfaceElementTimeControl- Returns:
- true if the method call was successful and the element was begun. false if the method call failed. Possible reasons for failure include: The element doesn't support the beginElement method. (the beginEvent attribute is not set to "undefinite" ) The element is already active and can't be restart when it is active. (the restart attribute is set to "whenNotActive" ) The element is active or has been active and can't be restart. (the restart attribute is set to "never" ).
-
endElement
public boolean endElement()Causes this element to end the local timeline (subject to sync constraints).- Specified by:
endElementin interfaceElementTime- Specified by:
endElementin interfaceElementTimeControl- Returns:
- true if the method call was successful and the element was endeed. false if method call failed. Possible reasons for failure include: The element doesn't support the endElement method. (the endEvent attribute is not set to "undefinite" ) The element is not active.
-
beginElementAt
public boolean beginElementAt(float offset) Causes this element to begin the local timeline (subject to sync constraints), at the passed offset from the current time when the method is called. If the offset is >= 0, the semantics are equivalent to an event-base begin with the specified offset. If the offset is < 0, the semantics are equivalent to beginElement(), but the element active duration is evaluated as though the element had begun at the passed (negative) offset from the current time when the method is called.- Specified by:
beginElementAtin interfaceElementTimeControl- Parameters:
offset- The offset in seconds at which to begin the element.- Returns:
- true if the method call was successful and the element was begun. false if the method call failed. Possible reasons for failure include: The element doesn't support the beginElementAt method. (the begin attribute is not set to "indefinite" ) The element is already active and can't be restart when it is active. (the restart attribute is set to "whenNotActive" ) The element is active or has been active and can't be restart. (the restart attribute is set to "never" ).
-
endElementAt
public boolean endElementAt(float offset) Causes this element to end the local timeline (subject to sync constraints) at the specified offset from the current time when the method is called.- Specified by:
endElementAtin interfaceElementTimeControl- Parameters:
offset- The offset in seconds at which to end the element. Must be >= 0.- Returns:
- true if the method call was successful and the element was ended. false if method call failed. Possible reasons for failure include: The element doesn't support the endElementAt method. (the end attribute is not set to "indefinite" ) The element is not active.
-
getValues
A DOMString representing the value of the values attribute.- Specified by:
getValuesin interfaceSMILAnimation- Returns:
- a
Stringobject.
-
setValues
setValues.
- Specified by:
setValuesin interfaceSMILAnimation- Parameters:
values- aStringobject.
-
getFrom
A DOMString representing the value of the from attribute.- Specified by:
getFromin interfaceSMILAnimation- Returns:
- a
Stringobject.
-
setFrom
setFrom.
- Specified by:
setFromin interfaceSMILAnimation- Parameters:
from- aStringobject.
-
getTo
A DOMString representing the value of the to attribute.- Specified by:
getToin interfaceSMILAnimation- Returns:
- a
Stringobject.
-
setTo
setTo.
- Specified by:
setToin interfaceSMILAnimation- Parameters:
to- aStringobject.
-
getBy
A DOMString representing the value of the by attribute.- Specified by:
getByin interfaceSMILAnimation- Returns:
- a
Stringobject.
-
setBy
setBy.
- Specified by:
setByin interfaceSMILAnimation- Parameters:
by- aStringobject.
-
getAnimate
Getter for the field animate.
- Returns:
- a
SVGAnimateImplobject.
-
setAnimate
Setter for the field animate.
- Parameters:
animate- aSVGAnimateImplobject.
-