Package org.loboevolution.html.dom.smil
Interface ElementTime
- All Known Subinterfaces:
ElementExclusiveTimeContainer,ElementParallelTimeContainer,ElementSequentialTimeContainer,ElementTimeContainer,SMILAnimateColorElement,SMILAnimateElement,SMILAnimateMotionElement,SMILAnimation,SMILDocument,SMILMediaElement,SMILRefElement,SMILSetElement
- All Known Implementing Classes:
SVGAnimateElementImpl,SVGAnimateTransformElementImpl,SVGAnimationElementImpl,SVGAnimationImpl
public interface ElementTime
This interface defines the set of timing attributes that are common to all
timed elements.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortConstant FILL_FREEZE=1static final shortConstant FILL_REMOVE=0static final shortConstant RESTART_ALWAYS=0static final shortConstant RESTART_NEVER=1static final shortConstant RESTART_WHEN_NOT_ACTIVE=2 -
Method Summary
Modifier and TypeMethodDescriptionbooleanCauses this element to begin the local timeline (subject to sync constraints).booleanCauses this element to end the local timeline (subject to sync constraints).getBegin()The desired value (as a list of times) of the begin instant of this node.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.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.default shortA code representing the value of the restart attribute, as defined above.default voidCauses this element to pause the local timeline (subject to sync constraints).default voidCauses this element to resume a paused local timeline.default voidseekElement(float seekTo) Seeks this element to the specified point on the local timeline (subject to sync constraints).default voidsetBegin.voidsetDur(float dur) setDur.default voidsetEnd.voidsetFill.voidsetRepeatCount(float repeatCount) setRepeatCount.voidsetRepeatDur(float repeatDur) setRepeatDur.default voidsetRestart(short restart) setRestart.
-
Field Details
-
RESTART_ALWAYS
static final short RESTART_ALWAYSConstant RESTART_ALWAYS=0- See Also:
-
RESTART_NEVER
static final short RESTART_NEVERConstant RESTART_NEVER=1- See Also:
-
RESTART_WHEN_NOT_ACTIVE
static final short RESTART_WHEN_NOT_ACTIVEConstant RESTART_WHEN_NOT_ACTIVE=2- See Also:
-
FILL_REMOVE
static final short FILL_REMOVEConstant FILL_REMOVE=0- See Also:
-
FILL_FREEZE
static final short FILL_FREEZEConstant FILL_FREEZE=1- See Also:
-
-
Method Details
-
getBegin
TimeList getBegin()The desired value (as a list of times) of the begin instant of this node.- Returns:
- a
TimeListobject. - Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
-
setBegin
setBegin.
- Parameters:
begin- aTimeListobject.
-
getEnd
TimeList getEnd()The list of active ends for this node.- Returns:
- a
TimeListobject. - Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
-
setEnd
setEnd.
- Parameters:
end- aTimeListobject.
-
getDur
float getDur()The desired simple duration value of this node in seconds. Negative value means "indefinite".- Returns:
- a float.
- Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
-
setDur
setDur.
- Parameters:
dur- a float.- Throws:
DOMException- if any.
-
getRestart
default short getRestart()A code representing the value of the restart attribute, as defined above. Default value is RESTART_ALWAYS .- Returns:
- a short.
- Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
-
setRestart
default void setRestart(short restart) setRestart.
- Parameters:
restart- a short.
-
getFill
String getFill()A code representing the value of the fill attribute, as defined above. Default value is FILL_REMOVE .- Returns:
- a
Stringobject. - Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
-
setFill
setFill.
- Parameters:
fill- aStringobject.- Throws:
DOMException- if any.
-
getRepeatCount
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).- Returns:
- a float.
- Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
-
setRepeatCount
setRepeatCount.
- Parameters:
repeatCount- a float.- Throws:
DOMException- if any.
-
getRepeatDur
float getRepeatDur()The repeatDur causes the element to play repeatedly (loop) for the specified duration in milliseconds. Negative means "indefinite".- Returns:
- a float.
- Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
-
setRepeatDur
setRepeatDur.
- Parameters:
repeatDur- a float.- Throws:
DOMException- if any.
-
beginElement
boolean beginElement()Causes this element to begin the local timeline (subject to sync constraints).- 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
boolean endElement()Causes this element to end the local timeline (subject to sync constraints).- 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.
-
pauseElement
default void pauseElement()Causes this element to pause the local timeline (subject to sync constraints). -
resumeElement
default void resumeElement()Causes this element to resume a paused local timeline. -
seekElement
default void seekElement(float seekTo) Seeks this element to the specified point on the local timeline (subject to sync constraints). If this is a timeline, this must seek the entire timeline (i.e. propagate to all timeChildren).- Parameters:
seekTo- The desired position on the local timeline in milliseconds.
-