/** * 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); } } }
/** * 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); } } }
/** * 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); } } }