Java Doc for TimedElementSupport.java in  » 6.0-JDK-Modules » j2me » com » sun » perseus » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.perseus.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.perseus.model.TimedElementSupport

All known Subclasses:   com.sun.perseus.model.TimeContainerSupport,
TimedElementSupport
public class TimedElementSupport (Code)
The TimedElementSupport class is the main abstraction of the SMIL timing model implementation.

It is responsible for computing the animation's state (inactive, active, post-acitve, frozen) and, when the application is active, what the current simple time is. That simple time is then used by the animation engine to compute animated values.

SMIL has a notion of time containers. A TimedElementSupport is the child of a time container. The relationship is that the element's current time is the container's simple time. In otherwords, sampling a container for a given time (in its own container), yields a simple time for the container. That simple time is the timed element's current time, used to compute the timed element's own simple time. Refer to the SMIL 2 specification for an explanation of what the various time semantics are.


version:
   $Id: TimedElementSupport.java,v 1.7 2006/07/13 00:55:58 st125089 Exp $


Field Summary
final public static  StringBEGIN_EVENT_TYPE
     Begin event type.
final public static  StringEND_EVENT_TYPE
     End event type.
final public static  intFILL_BEHAVIOR_FREEZE
     Used when this TimedElement should maintain the last value of its simple interval after it becomes inactive.
final public static  intFILL_BEHAVIOR_REMOVE
     Used when this TimedElement should not modify the animated value when it is post active.
final public static  StringLAST_DUR_END_EVENT_TYPE
     Last Simple Duration End event type.
final public static  StringREPEAT_EVENT_TYPE
    
final public static  intRESTART_ALWAYS
     Used when this TimedElement can be restarted under any circumstance.
final public static  intRESTART_NEVER
    
final public static  intRESTART_WHEN_NOT_ACTIVE
     Used when this TimedElement can only be restarted when it is not active (i.e., it does not have a current interval.
final public static  StringSEEK_BEGIN_EVENT_TYPE
     Seek End event type.
final public static  StringSEEK_END_EVENT_TYPE
     Seek End event type.
final protected static  intSTATE_FILL
     State when the element performs any fill on the previous interval.
final protected static  intSTATE_NO_INTERVAL
     State where there has never been a current interval (since the last init).
final protected static  intSTATE_PLAYING
     State while the element is playing the current interval.
final protected static  intSTATE_PRE_INIT
    
final protected static  intSTATE_WAITING_INTERVAL_0
     State while the element is waiting to begin the first interval.
final protected static  intSTATE_WAITING_INTERVAL_N
    
 ModelNodeanimationElement
     The associated animation element.
 VectorbeginConditions
     Begin TimeConditions.
 VectorbeginDependents
     List of SyncBaseConditions depedent on this element's begin condition.
 VectorbeginInstances
     List of begin TimeInstances.
 intcurIter
    
 TimeIntervalcurrentInterval
    
 Timedur
     This element's simple duration.
 VectorendConditions
     End TimeConditions.
 VectorendDependents
     List of SyncBaseConditions dependent on this element's end condition.
 VectorendInstances
     List of end TimeInstances.
final protected  TimeeventTime
     This time value is used to avoid creating Time instances over and over again in animation loops, when dispatching events.
 intfillBehavior
     Defines the behavior after this element is no longer active. If FILL_BEHAVIOR_FILL, it means the element will keep sampling at the last simple duration time.
 TimeimplicitDuration
    
 longlastSampleTime
     Last local time (i.e., within the simple duration) this element was sampled at.
 Timemax
    
 Timemin
     min sets a lower limit on the active duration.
 booleanplayFill
     Controls whether the element is in this rare state where it is playing but its last simple duration is finished.
 TimeIntervalpreviousInterval
     Keeps a reference to the interval preceding the current one.
 floatrepeatCount
     The number of times this element repeats the simple duration.
 TimerepeatDur
     repeatDur set a limit on active duration length.
 intrestart
     Defines the restart behavior for this element.
 booleanseeking
     The seeking flag is used when seeking to a particular time to prevent generation of beginEvent, endEvent and repeat event.
 TimesimpleDur
    
 intstate
     The element's state.
protected  TimeContainerSupporttimeContainer
     A reference to this element's time container.
 booleantimingUpdate
     Time dependency cycles detector.


Method Summary
public  voidactivate()
     Called when this element is the target of an hyperlink.
 voidaddInstance(boolean isBegin, long offset)
    
 voidaddTimeCondition(TimeCondition newCondition)
     Called by TimeConditions when they are constructed.
Parameters:
  newCondition - the new TimeCondition to add to the list.
 voidaddTimeInstance(TimeInstance newInstance)
     Called to add a new TimeInstance to the begin or end instance list (depending on the new instance's isBegin setting). This is also called as a result of invoking beginAt or endAt.
Parameters:
  newInstance - the new TimeInstance to add to the list.
public  voidbegin()
     Calling this method causes a new TimeInstance to be inserted in the begin instance list.
public  voidbeginAt(long offset)
     Calling this method causes a new TimeInstance to be inserted in the begin instance list.
 TimecalculateActiveEnd(Time begin, Time end)
     Computes the active end of this TimedElement for the given begin and end time constraints.
final  TimecalculateIntermediateActiveDuration(Time p0)
     Intermediate Active Duration Computation, as defined in the SMIL 2 specifications.
 booleancheckNewInterval(TimeInterval interval)
     Checks if the input interval is non null.
public  voidcheckPreInit()
     Implementation helper.
 TimecomputeEndTime(Time tempBegin)
     Computes the end time corresponding to the input begin time.
Parameters:
  tempBegin - the begin time for which to search an end time.
 TimeIntervalcomputeFirstInterval()
     The following computes the element's first interval, as defined in the SMIL specification.
 TimeIntervalcomputeLastDur(TimeInterval ti)
     Computes the time of the last simple duration instance for the given time interval.
Parameters:
  ti - the TimeInterval instance for which the time of the lastsimple duration instance should be computed.
 TimeIntervalcomputeNextInterval()
     The following computes the element's next interval, as defined in the SMIL specification.
final  TimecomputeSimpleDuration(Time end)
     Computes the element's simple duration, as defined in the SMIL 2 specification except that the 'media' value is not supported. For the purpose of computing the simple duration, an unspecified dur or an UNRESOLVED dur yield the same computed simple duration.
Parameters:
  end - the interval end time.
 voiddispatchBeginEvent(Time currentTime)
     Dispatches beginEvent.
 voiddispatchEndEvent(Time currentTime)
     Dispatches endEvent.
 voiddispatchLastDurEndEvent()
     Dispatches lastDurEndEvent.
 voiddispatchOnNewInterval()
     Calls all the registered TimeDependents so that they are notified of a new TimeInterval creation.
 voiddispatchRepeatEvent(Time currentTime)
     Dispatches repeatEvent.
 voiddispatchSeekEndEvent()
     Dispatches seekeEndEvent.
public  voidend()
     Calling this method causes a new TimeInstance to be inserted in the end instance list.
public  voidendAt(long offset)
     Calling this method causes a new TimeInstance to be inserted in the end instance list.
 booleanendHasEventConditions()
    
 TimegetContainerSimpleDuration()
    
 TimegetCurrentTime()
    
protected  TimegetImplicitElementDuration()
     this element's implicit duration.
 TimeContainerRootSupportgetRootContainer()
     Helper method.
 StringgetStateString()
     Debug helper.
 TimegetTimeAfter(Time after, Vector instances)
    
Parameters:
  after - we are looking for a time greater than or equalto after.
Parameters:
  instances - the Vector containing the TimeInstances tolook up.
 TimegetTimeAfterStrict(Time after, Vector instances)
    
Parameters:
  after - we are looking for a time greater than or equalto after.
Parameters:
  instances - the Vector containing the TimeInstances tolook up.
protected  TimeContainerSupportgetTimeContainer()
    
 booleanhasBeginCondition(EventBaseCondition eventCondition)
    
Parameters:
  eventCondition - the EventBaseCondition to checkagainst.
protected  voidinitialize()
     This method is called by the element's time container when it resets, i.e., when the container starts it's simple time again. This has the effect of: 1.
 booleanisDescendant(TimeContainerSupport parent)
    
Parameters:
  parent - the time container which might be on the timed element'sparent hierarchy.
 booleanisSeekingBack()
     Helper method.
protected  voidonStartingRepeat(int prevIter, int curIter)
     To be overridden by extensions (TimeContainerSupport) to do specific processing when a new iteration is started.
 voidonTimeInstanceUpdate(TimeInstance timeInstance)
     Called by TimeInstances when they are updated. In response, the TimedElement may recompute its current interval.
 voidreEvaluateEndTime()
     Recomputes the end time.
 voidremoveSyncBaseTimesUnder(TimeContainerSupport syncTimeContainer)
    
 voidremoveTimeInstance(TimeInstance timeInstance)
     Called to remove a TimeInstance when a TimeInterval is pruned.
 voidreset()
     Resetting the element clears all of its 'clearOnReset' instances from the begin and end list.
 voidsample(Time currentTime)
     This method is typically called by this element's time container when it samples. Note that if this element is not in the waiting or playing state, this does nothing.
 voidsampleAt(long simpleTime)
     Samples this element at the given simple time.
 voidseekTo(Time seekToTime)
     Implementation helper method for seekTo behavior.
Parameters:
  seekToTime - the time to seek to.
 TimeIntervalseekToInterval(Time seekToTime)
     Helper method to find the active interval, or next interval, for the requested time.
Parameters:
  seekToTime - the time we are seeking the active or next intervalfor.
public  voidsetDur(Time dur)
    
public  voidsetFillBehavior(int fillBehavior)
     Sets the fill state behavior.
public  voidsetMax(Time max)
     Sets the maximun active duration for any timed element interval.
Parameters:
  max - the new maximum active duration.
public  voidsetMin(Time min)
     Sets the minimum active duration for any timed element interval.
Parameters:
  min - the new minimum active duration.
public  voidsetRepeatCount(float repeatCount)
     Sets the repeat count.
Parameters:
  repeatCount - the new repeat count.
public  voidsetRepeatDur(Time repeatDur)
     Sets the repeat duration.
public  voidsetRestart(int restart)
     Sets the restart strategy.
protected  voidsetTimeContainer(TimeContainerSupport timeContainer)
    
 TimetoContainerSimpleTime(Time simpleTime)
     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.
 TimetoRootContainerSimpleTime(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).
 TimetoRootContainerSimpleTimeClamp(Time simpleTime)
     Same definition and behavior as toRootContainerSimpleTime, except that this method clamps values to the container's simple duration.
public  StringtoString()
     Debug helper.
 longtoWallClockTime(long localTime)
     Converts the input 'local' time to an absolute wallclock time.

Field Detail
BEGIN_EVENT_TYPE
final public static String BEGIN_EVENT_TYPE(Code)
Begin event type.



END_EVENT_TYPE
final public static String END_EVENT_TYPE(Code)
End event type.



FILL_BEHAVIOR_FREEZE
final public static int FILL_BEHAVIOR_FREEZE(Code)
Used when this TimedElement should maintain the last value of its simple interval after it becomes inactive.



FILL_BEHAVIOR_REMOVE
final public static int FILL_BEHAVIOR_REMOVE(Code)
Used when this TimedElement should not modify the animated value when it is post active.



LAST_DUR_END_EVENT_TYPE
final public static String LAST_DUR_END_EVENT_TYPE(Code)
Last Simple Duration End event type.



REPEAT_EVENT_TYPE
final public static String REPEAT_EVENT_TYPE(Code)
Repeat event type



RESTART_ALWAYS
final public static int RESTART_ALWAYS(Code)
Used when this TimedElement can be restarted under any circumstance.



RESTART_NEVER
final public static int RESTART_NEVER(Code)
Used when this TimedElement cannot be restarted under any circumstance



RESTART_WHEN_NOT_ACTIVE
final public static int RESTART_WHEN_NOT_ACTIVE(Code)
Used when this TimedElement can only be restarted when it is not active (i.e., it does not have a current interval.



SEEK_BEGIN_EVENT_TYPE
final public static String SEEK_BEGIN_EVENT_TYPE(Code)
Seek End event type.



SEEK_END_EVENT_TYPE
final public static String SEEK_END_EVENT_TYPE(Code)
Seek End event type.



STATE_FILL
final protected static int STATE_FILL(Code)
State when the element performs any fill on the previous interval.



STATE_NO_INTERVAL
final protected static int STATE_NO_INTERVAL(Code)
State where there has never been a current interval (since the last init).



STATE_PLAYING
final protected static int STATE_PLAYING(Code)
State while the element is playing the current interval.



STATE_PRE_INIT
final protected static int STATE_PRE_INIT(Code)
State before the element has been initialized



STATE_WAITING_INTERVAL_0
final protected static int STATE_WAITING_INTERVAL_0(Code)
State while the element is waiting to begin the first interval.



STATE_WAITING_INTERVAL_N
final protected static int STATE_WAITING_INTERVAL_N(Code)
State while the element is waiting to begin an interval other than the first one



animationElement
ModelNode animationElement(Code)
The associated animation element.



beginConditions
Vector beginConditions(Code)
Begin TimeConditions. Should _never_ be null.



beginDependents
Vector beginDependents(Code)
List of SyncBaseConditions depedent on this element's begin condition.



beginInstances
Vector beginInstances(Code)
List of begin TimeInstances.



curIter
int curIter(Code)
The current iteration (only used while playing



currentInterval
TimeInterval currentInterval(Code)
Keeps a reference to the current TimeInterval



dur
Time dur(Code)
This element's simple duration. This corresponds to the 'dur' attribute. Note that this is only one of the parameters that defines the actual simple duration.
See Also:   TimedElementSupport.simpleDur
See Also:   TimedElementSupport.computeSimpleDuration



endConditions
Vector endConditions(Code)
End TimeConditions. Should _never_ be null.



endDependents
Vector endDependents(Code)
List of SyncBaseConditions dependent on this element's end condition.



endInstances
Vector endInstances(Code)
List of end TimeInstances.



eventTime
final protected Time eventTime(Code)
This time value is used to avoid creating Time instances over and over again in animation loops, when dispatching events.



fillBehavior
int fillBehavior(Code)
Defines the behavior after this element is no longer active. If FILL_BEHAVIOR_FILL, it means the element will keep sampling at the last simple duration time. If FILL_BEHAVIOR_REMOVE (the default), the effect of the animation is removed when the element is inactive (i.e., when it no longer has a current interval.



implicitDuration
Time implicitDuration(Code)
This element's implicit duration



lastSampleTime
long lastSampleTime(Code)
Last local time (i.e., within the simple duration) this element was sampled at.



max
Time max(Code)
max sets an upper limit on the active duration



min
Time min(Code)
min sets a lower limit on the active duration.



playFill
boolean playFill(Code)
Controls whether the element is in this rare state where it is playing but its last simple duration is finished. In that state, the element is 'playing', but acting as if frozen. There are situations where the min attribute may cause the active duration to go beyond the time of the last simple duration instance. In that case, the element is still in the playing state, but we mark it as 'playFill', which means that it should behave almost as if in the fill state.



previousInterval
TimeInterval previousInterval(Code)
Keeps a reference to the interval preceding the current one.



repeatCount
float repeatCount(Code)
The number of times this element repeats the simple duration. NaN means unspecified.



repeatDur
Time repeatDur(Code)
repeatDur set a limit on active duration length.



restart
int restart(Code)
Defines the restart behavior for this element. This should be one of RESTART_ALWAYS, RESTART_WHEN_NOT_ACTIVE, RESTART_NEVER.



seeking
boolean seeking(Code)
The seeking flag is used when seeking to a particular time to prevent generation of beginEvent, endEvent and repeat event.



simpleDur
Time simpleDur(Code)
The simple duration for the current interval
See Also:   TimedElementSupport.computeSimpleDuration



state
int state(Code)
The element's state. One of the STATE_XXX constants.



timeContainer
protected TimeContainerSupport timeContainer(Code)
A reference to this element's time container. This is initialized anytime the parent is set. This element's current time is the container's simple time.
See Also:   TimedElementSupport.setParent



timingUpdate
boolean timingUpdate(Code)
Time dependency cycles detector. This flag is set to true when a timing update starts. There should only be one at a time, and it should always be set back to true after and timing update is complete.





Method Detail
activate
public void activate()(Code)
Called when this element is the target of an hyperlink. The behavior is that defined in the SMIL 2 specification.
See Also:    * SMIL 2 Specification



addInstance
void addInstance(boolean isBegin, long offset)(Code)
Adds a new TimedInstance with the specified offset to the begin or end instance list (depending on isBegin
Parameters:
  isBegin - if true, the instance is a begin instance
Parameters:
  offset - the instance offset from 0.



addTimeCondition
void addTimeCondition(TimeCondition newCondition)(Code)
Called by TimeConditions when they are constructed.
Parameters:
  newCondition - the new TimeCondition to add to the list. Should not be null.



addTimeInstance
void addTimeInstance(TimeInstance newInstance)(Code)
Called to add a new TimeInstance to the begin or end instance list (depending on the new instance's isBegin setting). This is also called as a result of invoking beginAt or endAt.
Parameters:
  newInstance - the new TimeInstance to add to the list. Should not be null.
See Also:   TimedElementSupport.beginAt
See Also:   TimedElementSupport.endAt
See Also:    * SMIL 2, Interaction with restart semantic



begin
public void begin()(Code)
Calling this method causes a new TimeInstance to be inserted in the begin instance list. The behavior depends on the restart setting.



beginAt
public void beginAt(long offset)(Code)
Calling this method causes a new TimeInstance to be inserted in the begin instance list. The behavior depends on the restart setting.
Parameters:
  offset - the begin time inserted into the instance listis offset by 'offset' milliseconds from the currenttime.



calculateActiveEnd
Time calculateActiveEnd(Time begin, Time end)(Code)
Computes the active end of this TimedElement for the given begin and end time constraints. This accounts for the other attributes which control or constrain the active duration.
Parameters:
  begin - the input begin time. Should not be unresolved or null.
Parameters:
  end - the proposed end time. May be null. the computed, constrained end time.
See Also:    * SMIL 2: Computing the active duration



calculateIntermediateActiveDuration
final Time calculateIntermediateActiveDuration(Time p0)(Code)
Intermediate Active Duration Computation, as defined in the SMIL 2 specifications.
Parameters:
  p0 - the element's simple duration. Should not be null the intermediate active duration.
See Also:    * Intermediate Active Duration Computation



checkNewInterval
boolean checkNewInterval(TimeInterval interval)(Code)
Checks if the input interval is non null. If it is, that interval becomes the new currentInterval and the element sets its state accordingly.
Parameters:
  interval - the interval to check. true if the candidate interval has become the current interval.



checkPreInit
public void checkPreInit()(Code)
Implementation helper. Throws an exception if the element is not in the STATE_PRE_INIT state.
throws:
  IllegalStateException - if the element is not in theSTATE_PRE_INIT state.



computeEndTime
Time computeEndTime(Time tempBegin)(Code)
Computes the end time corresponding to the input begin time.
Parameters:
  tempBegin - the begin time for which to search an end time. the computed end time or null if there is no matching end.



computeFirstInterval
TimeInterval computeFirstInterval()(Code)
The following computes the element's first interval, as defined in the SMIL specification. the first time interval
See Also:    * STARTUP - Getting the first interval



computeLastDur
TimeInterval computeLastDur(TimeInterval ti)(Code)
Computes the time of the last simple duration instance for the given time interval.
Parameters:
  ti - the TimeInterval instance for which the time of the lastsimple duration instance should be computed. the input TimeInterval instance.



computeNextInterval
TimeInterval computeNextInterval()(Code)
The following computes the element's next interval, as defined in the SMIL specification. the next interval given the current begin and end time instances.
See Also:    * End of an interval



computeSimpleDuration
final Time computeSimpleDuration(Time end)(Code)
Computes the element's simple duration, as defined in the SMIL 2 specification except that the 'media' value is not supported. For the purpose of computing the simple duration, an unspecified dur or an UNRESOLVED dur yield the same computed simple duration.
Parameters:
  end - the interval end time. Can be null or have any Timevalue. the computed simple duration.
See Also:    * Defining the simple duration



dispatchBeginEvent
void dispatchBeginEvent(Time currentTime)(Code)
Dispatches beginEvent. As per the SMIL 2 specification, this dispatches a beginEvent for the resolved begin time, not the observed begin time. It also dispatches any repeat event that might be needed.
Parameters:
  currentTime - the current sampling time.
See Also:    * SMIL2's Begin value semantics



dispatchEndEvent
void dispatchEndEvent(Time currentTime)(Code)
Dispatches endEvent. As per the SMIL 2 specification, this dispatches an endEvent for the resolved end time, not the observed end time.
Parameters:
  currentTime - the current sampling time.
See Also:    * SMIL2's Begin value semantics



dispatchLastDurEndEvent
void dispatchLastDurEndEvent()(Code)
Dispatches lastDurEndEvent.
See Also:   
dispatchOnNewInterval
void dispatchOnNewInterval()(Code)
Calls all the registered TimeDependents so that they are notified of a new TimeInterval creation.



dispatchRepeatEvent
void dispatchRepeatEvent(Time currentTime)(Code)
Dispatches repeatEvent. As per the SMIL 2 specification, this dispatches a repeatEvent for the resolved end time, not the observed repeat time(s).
See Also:    * SMIL2's Begin value semantics



dispatchSeekEndEvent
void dispatchSeekEndEvent()(Code)
Dispatches seekeEndEvent.
See Also:   
end
public void end()(Code)
Calling this method causes a new TimeInstance to be inserted in the end instance list. This typically causes the current interval (if any), to be ended.



endAt
public void endAt(long offset)(Code)
Calling this method causes a new TimeInstance to be inserted in the end instance list. This typically causes the current interval (if any), to be ended.
Parameters:
  offset - the end time inserted into the instance listis offset by 'offset' milliseconds from the currenttime.



endHasEventConditions
boolean endHasEventConditions()(Code)
true if there is at least one event end condition.



getContainerSimpleDuration
Time getContainerSimpleDuration()(Code)
the container's simple duration.



getCurrentTime
Time getCurrentTime()(Code)
this TimedElement's current time.



getImplicitElementDuration
protected Time getImplicitElementDuration()(Code)
this element's implicit duration. Can be used for media suchas audio and video where there is a natural, implicit duration.



getRootContainer
TimeContainerRootSupport getRootContainer()(Code)
Helper method. this timed element's root container.



getStateString
String getStateString()(Code)
Debug helper. Converts the state to a string. a string describing the element's state.



getTimeAfter
Time getTimeAfter(Time after, Vector instances)(Code)

Parameters:
  after - we are looking for a time greater than or equalto after.
Parameters:
  instances - the Vector containing the TimeInstances tolook up. the first value in the given instance list thatstarts after the input time.



getTimeAfterStrict
Time getTimeAfterStrict(Time after, Vector instances)(Code)

Parameters:
  after - we are looking for a time greater than or equalto after.
Parameters:
  instances - the Vector containing the TimeInstances tolook up. the first value in the given instance list thatstarts strictly after the input time.



getTimeContainer
protected TimeContainerSupport getTimeContainer()(Code)
this TimedElement's container.



hasBeginCondition
boolean hasBeginCondition(EventBaseCondition eventCondition)(Code)

Parameters:
  eventCondition - the EventBaseCondition to checkagainst. true if this TimedElement has a begin conditioncorresponding to the input EventBaseCondition



initialize
protected void initialize()(Code)
This method is called by the element's time container when it resets, i.e., when the container starts it's simple time again. This has the effect of: 1. clearing all the instance times which have the clearOnReset flag set to true. 2. compute the first interval.



isDescendant
boolean isDescendant(TimeContainerSupport parent)(Code)

Parameters:
  parent - the time container which might be on the timed element'sparent hierarchy. true if this timed element is equal to 'parent' or is a descendant of 'parent'



isSeekingBack
boolean isSeekingBack()(Code)
Helper method. true if the root time container is flagged as seeking back.



onStartingRepeat
protected void onStartingRepeat(int prevIter, int curIter)(Code)
To be overridden by extensions (TimeContainerSupport) to do specific processing when a new iteration is started.
Parameters:
  prevIter - the last iteration this element was playing.
Parameters:
  curIter - the new iteration this element is playing.



onTimeInstanceUpdate
void onTimeInstanceUpdate(TimeInstance timeInstance)(Code)
Called by TimeInstances when they are updated. In response, the TimedElement may recompute its current interval.
Parameters:
  timeInstance - the TimeInstance that was just updated.
throws:
  NullPointerException - if timeInstance is null.
See Also:    * SMIL 2: Building the instance times lists



reEvaluateEndTime
void reEvaluateEndTime()(Code)
Recomputes the end time. This only does something if the element is playing or waiting to play, because it may update the currentInterval's end time.



removeSyncBaseTimesUnder
void removeSyncBaseTimesUnder(TimeContainerSupport syncTimeContainer)(Code)
Removes all IntervalTimeInstances in the begin and end instance list if the syncBase is a descendant of syncTimeContainer
Parameters:
  syncTimeContainer - the container under whichIntervalTimeInstance should be removed.



removeTimeInstance
void removeTimeInstance(TimeInstance timeInstance)(Code)
Called to remove a TimeInstance when a TimeInterval is pruned. This causes a re-evaluation of the current interval's begin or end time.
Parameters:
  timeInstance - the instance to remove from its instance list.



reset
void reset()(Code)
Resetting the element clears all of its 'clearOnReset' instances from the begin and end list. This includes event based time instances, time instances resulting from begin() or end() calls and resolved IntervalTimeInstance.



sample
void sample(Time currentTime)(Code)
This method is typically called by this element's time container when it samples. Note that if this element is not in the waiting or playing state, this does nothing. This method assumes that successive calls are made with increasing time values.
Parameters:
  currentTime - the time at which this element should be sampled.



sampleAt
void sampleAt(long simpleTime)(Code)
Samples this element at the given simple time. Should be overridden for specific behaviors.
Parameters:
  simpleTime - this timed element simple time.



seekTo
void seekTo(Time seekToTime)(Code)
Implementation helper method for seekTo behavior.
Parameters:
  seekToTime - the time to seek to.



seekToInterval
TimeInterval seekToInterval(Time seekToTime)(Code)
Helper method to find the active interval, or next interval, for the requested time.
Parameters:
  seekToTime - the time we are seeking the active or next intervalfor. the TimeInterval corresponding toseekToTime



setDur
public void setDur(Time dur)(Code)
Sets the duration for this timed element
Parameters:
  dur - the new element duration.
throws:
  IllegalStateException - if the element is not in theSTATE_PRE_INIT state.



setFillBehavior
public void setFillBehavior(int fillBehavior)(Code)
Sets the fill state behavior.
Parameters:
  fillBehavior - the new fill strategy, one of FILL_BEHAVIOR_FREEZE orFILL_BEHAVIOR_REMOVE
throws:
  IllegalStateException - if the element is not in the STATE_PRE_INIT state.



setMax
public void setMax(Time max)(Code)
Sets the maximun active duration for any timed element interval.
Parameters:
  max - the new maximum active duration. Should not benull.
throws:
  IllegalStateException - if the element is not in theSTATE_PRE_INIT state.



setMin
public void setMin(Time min)(Code)
Sets the minimum active duration for any timed element interval.
Parameters:
  min - the new minimum active duration. Should not be null.
throws:
  IllegalStateException - if the element is not in theSTATE_PRE_INIT state.



setRepeatCount
public void setRepeatCount(float repeatCount)(Code)
Sets the repeat count.
Parameters:
  repeatCount - the new repeat count. Must be greater thanzero.
throws:
  IllegalStateException - if the element is not in theSTATE_PRE_INIT state.



setRepeatDur
public void setRepeatDur(Time repeatDur)(Code)
Sets the repeat duration.
Parameters:
  repeatDur - the new repeat duration.
throws:
  IllegalStateException - if the element is not in theSTATE_PRE_INIT state.



setRestart
public void setRestart(int restart)(Code)
Sets the restart strategy.
Parameters:
  restart - the new restart strategy, one ofRESTART_ALWAYS, RESTART_NEVER or RESTART_WHEN_NOT_ACTIVE.
throws:
  IllegalStateException - if the element is not in theSTATE_PRE_INIT state.



setTimeContainer
protected void setTimeContainer(TimeContainerSupport timeContainer)(Code)
Sets this timed element's time container
Parameters:
  timeContainer - time container



toContainerSimpleTime
Time toContainerSimpleTime(Time simpleTime)(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. Note that this method mutates the input argument. If the associated time container does not have a current interval, this method returns Time.UNRESOLVED.
Parameters:
  simpleTime - the time in the root container's simple duration. IfsimpleTime is Time.UNRESOLVED, the returned time is UNRESOLVED. IfsimpleTime is Time.INDEFINITE, the returned time is INDEFINITE. 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). Note that this method mutates the input time value. If the associated time container does not have a current interval, this method returns Time.UNRESOLVED.
Parameters:
  simpleTime - the time in the parent container's simple duration.Should not be null. If simpleTime is Time.UNRESOLVED, the returnedtime is UNRESOLVED. If simpleTime is Time.INDEFINITE, the returnedtime is INDEFINITE. 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)
Same definition and behavior as toRootContainerSimpleTime, except that this method clamps values to the container's simple duration. This means that a value smaller than zero is converted to 0 and a value greater than the simple duration is reduced to the simple duration.
Parameters:
  simpleTime - the time in the parent container's simple duration.Should not be null. If simpleTime is Time.UNRESOLVED, the returnedtime is UNRESOLVED. If simpleTime is Time.INDEFINITE, the returnedtime is INDEFINITE. a time in the root time container's simple duration (i.e., in the root container's simple time interval).



toString
public String toString()(Code)
Debug helper. a description of this object.



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 an absolute wallclock time.



Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.