|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.anim.timing.TimedElement
org.apache.batik.anim.timing.TimeContainer
org.apache.batik.anim.timing.TimedDocumentRoot
public abstract class TimedDocumentRoot
An abstract base class for the root time container element for a document.
Field Summary | |
---|---|
protected java.util.Calendar |
documentBeginTime
The wallclock time that the document began. |
protected boolean |
isHyperlinking
Whether the document is currently being sampled for a hyperlink. |
protected boolean |
isSampling
Whether the document is currently being sampled. |
protected java.util.LinkedList |
listeners
List of {link TimegraphListener}s to be notified of changes to the timed elements in this document. |
protected DoublyIndexedSet |
propagationFlags
A set to determine when propagation of new Instance times should be stopped. |
protected boolean |
useSVG11AccessKeys
Allows the use of accessKey() timing specifiers with a single character, as specified in SVG 1.1. |
protected boolean |
useSVG12AccessKeys
Allows the use of accessKey() timing specifiers with a DOM 3 key name, as specified in SVG 1.2. |
Fields inherited from class org.apache.batik.anim.timing.TimeContainer |
---|
children |
Fields inherited from class org.apache.batik.anim.timing.TimedElement |
---|
beginDependents, beginInstanceTimes, beginTimes, currentInterval, currentRepeatIteration, durMedia, endDependents, endInstanceTimes, endTimes, FILL_FREEZE, FILL_REMOVE, fillMode, handledEvents, hasParsed, hasPropagated, INDEFINITE, isActive, isFrozen, lastIntervalEnd, lastRepeatTime, lastSampleTime, localizableSupport, max, maxMedia, min, minMedia, parent, previousInterval, repeatCount, repeatDur, repeatDuration, RESOURCES, RESTART_ALWAYS, RESTART_NEVER, RESTART_WHEN_NOT_ACTIVE, restartMode, root, shouldUpdateCurrentInterval, simpleDur, UNRESOLVED |
Constructor Summary | |
---|---|
TimedDocumentRoot(boolean useSVG11AccessKeys,
boolean useSVG12AccessKeys)
Creates a new TimedDocumentRoot. |
Method Summary | |
---|---|
void |
addTimegraphListener(TimegraphListener l)
Adds a TimegraphListener to the document. |
float |
convertEpochTime(long t)
Converts an epoch time to document time. |
float |
convertWallclockTime(java.util.Calendar time)
Converts a wallclock time to document time. |
protected void |
currentIntervalWillUpdate()
Invoked by timed elements in this document to indicate that the current interval will be re-evaluated at the next sample. |
float |
getCurrentTime()
Returns the last sampled document time. |
float |
getDefaultBegin(TimedElement child)
Returns the default begin time for the given child timed element. |
java.util.Calendar |
getDocumentBeginTime()
Returns the wallclock time that the document began. |
protected abstract java.lang.String |
getEventNamespaceURI(java.lang.String eventName)
Returns the namespace URI of the event that corresponds to the given animation event name. |
protected abstract java.lang.String |
getEventType(java.lang.String eventName)
Returns the type of the event that corresponds to the given animation event name. |
protected float |
getImplicitDur()
Returns the implicit duration of the element. |
protected abstract java.lang.String |
getRepeatEventName()
Returns the name of the repeat event. |
boolean |
isHyperlinking()
Returns whether the document is currently being sampled for a hyperlink. |
boolean |
isSampling()
Returns whether the document is currently being sampled. |
void |
removeTimegraphListener(TimegraphListener l)
Removes a TimegraphListener from the document. |
void |
resetDocument(java.util.Calendar documentBeginTime)
Resets the entire timegraph. |
float |
seekTo(float time,
boolean hyperlinking)
Samples the entire timegraph at the given time. |
Methods inherited from class org.apache.batik.anim.timing.TimeContainer |
---|
addChild, getChildren, isConstantAnimation, removeChild, reset, sampleAt, sampleChildren, setRoot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Calendar documentBeginTime
protected boolean useSVG11AccessKeys
protected boolean useSVG12AccessKeys
protected DoublyIndexedSet propagationFlags
protected java.util.LinkedList listeners
protected boolean isSampling
protected boolean isHyperlinking
Constructor Detail |
---|
public TimedDocumentRoot(boolean useSVG11AccessKeys, boolean useSVG12AccessKeys)
useSVG11AccessKeys
- allows the use of accessKey() timing
specifiers with a single characteruseSVG12AccessKeys
- allows the use of accessKey() with a
DOM 3 key nameMethod Detail |
---|
protected float getImplicitDur()
TimedElement.INDEFINITE
implicit duration.
getImplicitDur
in class TimedElement
public float getDefaultBegin(TimedElement child)
getDefaultBegin
in class TimeContainer
public float getCurrentTime()
public boolean isSampling()
public boolean isHyperlinking()
public float seekTo(float time, boolean hyperlinking)
public void resetDocument(java.util.Calendar documentBeginTime)
public java.util.Calendar getDocumentBeginTime()
public float convertEpochTime(long t)
public float convertWallclockTime(java.util.Calendar time)
public void addTimegraphListener(TimegraphListener l)
TimegraphListener
to the document.
public void removeTimegraphListener(TimegraphListener l)
TimegraphListener
from the document.
protected void currentIntervalWillUpdate()
protected abstract java.lang.String getEventNamespaceURI(java.lang.String eventName)
protected abstract java.lang.String getEventType(java.lang.String eventName)
protected abstract java.lang.String getRepeatEventName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |