SMILSamplepublic class SMILSample extends Object implements RunnableSMILSample is the root of the SMIL Timing engine operation.
This class simply samples the time graph at the current time where the
current time is controlled by a Clock abstraction. |
Fields Summary |
---|
protected DocumentNode | docThe document on which sampling is done. | protected TimeContainerRootSupport | rootThe root of the time graph to sample. | protected Time | currentTimeThe time at which we are currently sampling. | protected Clock | clockThe clock used by this sampler to define the current document time. |
Constructors Summary |
---|
public SMILSample(DocumentNode doc, Clock clock)Builds a new time graph sampler which samples the time graph
at the current real-world time.
if (doc == null || doc.timeContainerRootSupport == null) {
throw new NullPointerException();
}
if (clock == null) {
throw new NullPointerException();
}
this.doc = doc;
this.root = doc.timeContainerRootSupport;
this.clock = clock;
|
Methods Summary |
---|
public void | run()Runnable implementation.
currentTime.value = clock.currentTimeMillis();
doc.sample(currentTime);
// System.err.println("\n\n\n");
// root.dump();
doc.applyAnimations();
doc.applyMedia();
|
|