FileDocCategorySizeDatePackage
ElementTime.javaAPI DocAndroid 1.5 API6081Wed May 06 22:42:46 BST 2009org.w3c.dom.smil

ElementTime

public interface ElementTime
This interface defines the set of timing attributes that are common to all timed elements.

Fields Summary
public static final short
RESTART_ALWAYS
public static final short
RESTART_NEVER
public static final short
RESTART_WHEN_NOT_ACTIVE
public static final short
FILL_REMOVE
public static final short
FILL_FREEZE
public static final short
FILL_AUTO
Constructors Summary
Methods Summary
public booleanbeginElement()
Causes this element to begin the local timeline (subject to sync constraints).

return
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" ).

public booleanendElement()
Causes this element to end the local timeline (subject to sync constraints).

return
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.

public TimeListgetBegin()
The desired value (as a list of times) of the begin instant of this node.

exception
DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

public floatgetDur()
The desired simple duration value of this node in seconds. Negative value means "indefinite".

exception
DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

public TimeListgetEnd()
The list of active ends for this node.

exception
DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

public shortgetFill()
A code representing the value of the fill attribute, as defined above. Default value is FILL_REMOVE .

exception
DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

public shortgetFillDefault()

public floatgetRepeatCount()
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).

exception
DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

public floatgetRepeatDur()
The repeatDur causes the element to play repeatedly (loop) for the specified duration in milliseconds. Negative means "indefinite".

exception
DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

public shortgetRestart()
A code representing the value of the restart attribute, as defined above. Default value is RESTART_ALWAYS .

exception
DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.

public voidpauseElement()
Causes this element to pause the local timeline (subject to sync constraints).

public voidresumeElement()
Causes this element to resume a paused local timeline.

public voidseekElement(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).

param
seekTo The desired position on the local timeline in milliseconds.

public voidsetBegin(TimeList begin)

public voidsetDur(float dur)

public voidsetEnd(TimeList end)

public voidsetFill(short fill)

public voidsetFillDefault(short fillDefault)

public voidsetRepeatCount(float repeatCount)

public voidsetRepeatDur(float repeatDur)

public voidsetRestart(short restart)