/** * Sets the current document time. */ public void setCurrentTime(float t) { ctx.getAnimationEngine().setCurrentTime(t); } }
/** * Returns the AnimationEngine for the document. Creates one if * it doesn't exist. */ public SVGAnimationEngine getAnimationEngine() { if (animationEngine == null) { animationEngine = new SVGAnimationEngine(document, this); setAnimationLimitingMode(); } return animationEngine; }
/** * Returns the current document time. */ public float getCurrentTime() { return ctx.getAnimationEngine().getCurrentTime(); }
AnimatableValue val = eng.parseAnimatableValue (element, animationTarget, attributeNamespaceURI, attributeLocalName, isCSS, valuesString.substring(start, end));
eng.addAnimation(animationTarget, AnimationEngine.ANIM_TYPE_OTHER, attributeNamespaceURI, attributeLocalName, animation);
animationEngine.dispose(); animationEngine = null;
/** * Returns whether animations are currently paused. */ public boolean animationsPaused() { return ctx.getAnimationEngine().isPaused(); }
/** * Handles this animation element. * * @param ctx the bridge context to use * @param e the element being handled */ public void handleElement(BridgeContext ctx, Element e) { if (ctx.isDynamic() && BridgeContext.getSVGContext(e) == null) { SVGAnimationElementBridge b = (SVGAnimationElementBridge) getInstance(); b.element = (SVGOMElement) e; b.ctx = ctx; b.eng = ctx.getAnimationEngine(); b.element.setSVGContext(b); if (b.eng.hasStarted()) { b.initializeAnimation(); b.initializeTimedElement(); } else { b.eng.addInitialBridge(b); } } }
/** * Returns the underlying value of the animated attribute. Used for * composition of additive animations. This should be overridden in * descendant classes that are for 'other' animations. */ public AnimatableValue getUnderlyingValue() { if (animationType == AnimationEngine.ANIM_TYPE_XML) { return animationTarget.getUnderlyingValue(attributeNamespaceURI, attributeLocalName); } else { return eng.getUnderlyingCSSValue(element, animationTarget, attributeLocalName); } }
AnimatableValue val = eng.parseAnimatableValue (element, animationTarget, attributeNamespaceURI, attributeLocalName, isCSS, valuesString.substring(start, end));
eng.addAnimation(animationTarget, AnimationEngine.ANIM_TYPE_OTHER, attributeNamespaceURI, attributeLocalName, animation);
animationEngine.dispose(); animationEngine = null;
/** * Returns whether animations are currently paused. */ public boolean animationsPaused() { return ctx.getAnimationEngine().isPaused(); }
/** * Handles this animation element. * * @param ctx the bridge context to use * @param e the element being handled */ public void handleElement(BridgeContext ctx, Element e) { if (ctx.isDynamic() && BridgeContext.getSVGContext(e) == null) { SVGAnimationElementBridge b = (SVGAnimationElementBridge) getInstance(); b.element = (SVGOMElement) e; b.ctx = ctx; b.eng = ctx.getAnimationEngine(); b.element.setSVGContext(b); if (b.eng.hasStarted()) { b.initializeAnimation(); b.initializeTimedElement(); } else { b.eng.addInitialBridge(b); } } }
/** * Returns the underlying value of the animated attribute. Used for * composition of additive animations. This should be overridden in * descendant classes that are for 'other' animations. */ public AnimatableValue getUnderlyingValue() { if (animationType == AnimationEngine.ANIM_TYPE_XML) { return animationTarget.getUnderlyingValue(attributeNamespaceURI, attributeLocalName); } else { return eng.getUnderlyingCSSValue(element, animationTarget, attributeLocalName); } }
/** * Sets the current document time. */ public void setCurrentTime(float t) { ctx.getAnimationEngine().setCurrentTime(t); } }
AnimatableValue val = eng.parseAnimatableValue (element, animationTarget, attributeNamespaceURI, attributeLocalName, isCSS, valuesString.substring(start, end));
eng.addAnimation(animationTarget, AnimationEngine.ANIM_TYPE_OTHER, attributeNamespaceURI, attributeLocalName, animation);
animationEngine.dispose(); animationEngine = null;
/** * Returns the AnimationEngine for the document. Creates one if * it doesn't exist. */ public SVGAnimationEngine getAnimationEngine() { if (animationEngine == null) { animationEngine = new SVGAnimationEngine(document, this); setAnimationLimitingMode(); } return animationEngine; }