| |
|
| java.lang.Object com.sun.perseus.model.TimedElementSupport com.sun.perseus.model.TimeContainerSupport com.sun.perseus.model.TimeContainerRootSupport
TimeContainerRootSupport | public class TimeContainerRootSupport extends TimeContainerSupport (Code) | | version: $Id: TimeContainerRootSupport.java,v 1.2 2006/04/21 06:37:20 st125089 Exp $ |
Method Summary | |
void | dispatchBeginEvent(Time beginTime) Dispatches beginEvent. | Time | getContainerSimpleDuration() For the root container, there is no container simple duration, so we
retun INDEFINITE, no matter what the state is. | TimeContainerRootSupport | getRootContainer() Helper method. | void | sample(Time currentTime) Overrides the default sample time to capture the last sample time.
Parameters: currentTime - the time at which this element should be sampled. | void | seekTo(Time seekToTime) Seek to the requested time. | protected void | setTimeContainer(TimeContainerSupport timeContainer) Always throws an exception because a root container should not have
a parent container. | Time | toContainerSimpleTime(Time rootSimpleTime) Converts the input root container simple time (i.e., a time in the root
container's simple time interval) to a time in this element's time
container simple duration.
Parameters: rootSimpleTime - the time in the root container's simple duration. | Time | toRootContainerSimpleTime(Time simpleTime) Converts the input simple time (i.e., a time in the parent container's
simple duration) to a root container simple time (i.e., a time
in the root time container's simple time interval). | Time | toRootContainerSimpleTimeClamp(Time simpleTime) Converts the input simple time (i.e., a time in the parent container's
simple duration) to a root container simple time (i.e., a time
in the root time container's simple time interval). | long | toWallClockTime(long localTime) Converts the input 'local' time to an absolute wallclock time. |
beginWallClockTime | protected long beginWallClockTime(Code) | | The time at which the document started. This is
initially set when animation is started and then
modified when the document's timeline is seeked
to a particular time.
|
lastSampleTime | protected Time lastSampleTime(Code) | | The last sample time.
|
seekingBack | protected boolean seekingBack(Code) | | Flags that the seek is backwards
|
TimeContainerRootSupport | TimeContainerRootSupport()(Code) | | There is no parent container for this root. The parent is this
node itself.
Also, the root time container has a default 0-offset begin condition
added to it so that the first interval is created and is
[0, INDEFINITE[.
|
dispatchBeginEvent | void dispatchBeginEvent(Time beginTime)(Code) | | Dispatches beginEvent. See the TimedElementSupport class
method implementation. This class also uses the opportunity to record
what the wallclock time is for the begin time so that localTimes can
be converted later.
Parameters: beginTime - the interval begin time |
getContainerSimpleDuration | Time getContainerSimpleDuration()(Code) | | For the root container, there is no container simple duration, so we
retun INDEFINITE, no matter what the state is.
the container's simple duration. |
sample | void sample(Time currentTime)(Code) | | Overrides the default sample time to capture the last sample time.
Parameters: currentTime - the time at which this element should be sampled. |
seekTo | void seekTo(Time seekToTime)(Code) | | Seek to the requested time. The time is assumed to be in
document simple time.
Parameters: seekToTime - the time to seek to |
setTimeContainer | protected void setTimeContainer(TimeContainerSupport timeContainer)(Code) | | Always throws an exception because a root container should not have
a parent container.
Parameters: timeContainer - time container throws: IllegalArgumentException - always thrown for a root time container which should not have a parent container. |
toContainerSimpleTime | Time toContainerSimpleTime(Time rootSimpleTime)(Code) | | Converts the input root container simple time (i.e., a time in the root
container's simple time interval) to a time in this element's time
container simple duration.
Parameters: rootSimpleTime - the time in the root container's simple duration. a simple time in the parent container's simple duration Thereturn value is in the [0, container simple duration] interval. |
toRootContainerSimpleTime | Time toRootContainerSimpleTime(Time simpleTime)(Code) | | Converts the input simple time (i.e., a time in the parent container's
simple duration) to a root container simple time (i.e., a time
in the root time container's simple time interval).
Parameters: simpleTime - the time in the parent container's simple duration a time in the root time container's simple duration (i.e., in the root container's simple time interval). |
toRootContainerSimpleTimeClamp | Time toRootContainerSimpleTimeClamp(Time simpleTime)(Code) | | Converts the input simple time (i.e., a time in the parent container's
simple duration) to a root container simple time (i.e., a time
in the root time container's simple time interval).
Parameters: simpleTime - the time in the parent container's simple duration a time in the root time container's simple duration (i.e., in the root container's simple time interval). |
toWallClockTime | long toWallClockTime(long localTime)(Code) | | Converts the input 'local' time to an absolute wallclock time.
Parameters: localTime - the time to convert to wallclock time the time, converted to wall clock time. |
|
|
|