/** * Method to dispatch SVG Zoom event. */ protected void dispatchSVGZoomEvent() { if (bridgeContext.isSVG12()) { dispatchSVGDocEvent("zoom"); } else { dispatchSVGDocEvent("SVGZoom"); } }
/** * Method to dispatch SVG Scroll event. */ protected void dispatchSVGScrollEvent() { if (bridgeContext.isSVG12()) { dispatchSVGDocEvent("scroll"); } else { dispatchSVGDocEvent("SVGScroll"); } }
/** * Method to dispatch SVG Zoom event. */ protected void dispatchSVGZoomEvent() { if (bridgeContext.isSVG12()) { dispatchSVGDocEvent("zoom"); } else { dispatchSVGDocEvent("SVGZoom"); } }
/** * Method to dispatch SVG Resize event. */ protected void dispatchSVGResizeEvent() { if (bridgeContext.isSVG12()) { dispatchSVGDocEvent("resize"); } else { dispatchSVGDocEvent("SVGResize"); } }
/** * Method to dispatch SVG Resize event. */ protected void dispatchSVGResizeEvent() { if (bridgeContext.isSVG12()) { dispatchSVGDocEvent("resize"); } else { dispatchSVGDocEvent("SVGResize"); } }
/** * Method to dispatch SVG Scroll event. */ protected void dispatchSVGScrollEvent() { if (bridgeContext.isSVG12()) { dispatchSVGDocEvent("scroll"); } else { dispatchSVGDocEvent("SVGScroll"); } }
/** * Method to dispatch SVG Scroll event. */ protected void dispatchSVGScrollEvent() { if (bridgeContext.isSVG12()) { dispatchSVGDocEvent("scroll"); } else { dispatchSVGDocEvent("SVGScroll"); } }
/** * Method to dispatch SVG Zoom event. */ protected void dispatchSVGZoomEvent() { if (bridgeContext.isSVG12()) { dispatchSVGDocEvent("zoom"); } else { dispatchSVGDocEvent("SVGZoom"); } }
/** * Method to dispatch SVG Resize event. */ protected void dispatchSVGResizeEvent() { if (bridgeContext.isSVG12()) { dispatchSVGDocEvent("resize"); } else { dispatchSVGDocEvent("SVGResize"); } }
/** * Associates the {@link SVGContext} with the element. This method should * be called even for static documents, since some bridges will need to * access animated attribute values even during the first build. */ protected void associateSVGContext(BridgeContext ctx, Element e, GraphicsNode node) { this.e = e; this.node = node; this.ctx = ctx; this.unitContext = UnitProcessor.createContext(ctx, e); this.isSVG12 = ctx.isSVG12(); ((SVGOMElement)e).setSVGContext(this); }
/** * Associates the {@link SVGContext} with the element. This method should * be called even for static documents, since some bridges will need to * access animated attribute values even during the first build. */ protected void associateSVGContext(BridgeContext ctx, Element e, GraphicsNode node) { this.e = e; this.node = node; this.ctx = ctx; this.unitContext = UnitProcessor.createContext(ctx, e); this.isSVG12 = ctx.isSVG12(); ((SVGOMElement)e).setSVGContext(this); }
/** * Associates the {@link SVGContext} with the element. This method should * be called even for static documents, since some bridges will need to * access animated attribute values even during the first build. */ protected void associateSVGContext(BridgeContext ctx, Element e, GraphicsNode node) { this.e = e; this.node = node; this.ctx = ctx; this.unitContext = UnitProcessor.createContext(ctx, e); this.isSVG12 = ctx.isSVG12(); ((SVGOMElement)e).setSVGContext(this); }
/** * Dispatches an 'SVGLoad' event to the document. */ protected void dispatchSVGLoadEvent(BridgeContext ctx, ScriptingEnvironment se) { se.loadScripts(); se.dispatchSVGLoadEvent(); if (ctx.isSVG12() && ctx.xblManager != null) { SVG12BridgeContext ctx12 = (SVG12BridgeContext) ctx; ctx12.addBindingListener(); ctx12.xblManager.startProcessing(); } }
/** * Dispatches an 'SVGLoad' event to the document. */ protected void dispatchSVGLoadEvent(BridgeContext ctx, ScriptingEnvironment se) { se.loadScripts(); se.dispatchSVGLoadEvent(); if (ctx.isSVG12() && ctx.xblManager != null) { SVG12BridgeContext ctx12 = (SVG12BridgeContext) ctx; ctx12.addBindingListener(); ctx12.xblManager.startProcessing(); } }
/** * Dispatches an 'SVGLoad' event to the document. */ protected void dispatchSVGLoadEvent(BridgeContext ctx, ScriptingEnvironment se) { se.loadScripts(); se.dispatchSVGLoadEvent(); if (ctx.isSVG12() && ctx.xblManager != null) { SVG12BridgeContext ctx12 = (SVG12BridgeContext) ctx; ctx12.addBindingListener(); ctx12.xblManager.startProcessing(); } }
AbstractEvent ev = (AbstractEvent) de.createEvent("SVGEvents"); String type; if (bridgeContext.isSVG12()) { type = "load"; } else {
AbstractEvent ev = (AbstractEvent) de.createEvent("SVGEvents"); String type; if (bridgeContext.isSVG12()) { type = "load"; } else {
public void run() { synchronized (UpdateManager.this) { AbstractEvent evt = (AbstractEvent) ((DocumentEvent)document).createEvent("SVGEvents"); String type; if (bridgeContext.isSVG12()) { type = "unload"; } else { type = "SVGUnload"; } evt.initEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, type, false, // canBubbleArg false); // cancelableArg ((EventTarget)(document.getDocumentElement())). dispatchEvent(evt); running = false; // Now shut everything down and disconnect // everything before we send the // UpdateMangerStopped event. scriptingEnvironment.interrupt(); updateRunnableQueue.getThread().halt(); bridgeContext.dispose(); // Send the UpdateManagerStopped event. UpdateManagerEvent ev = new UpdateManagerEvent (UpdateManager.this, null, null); fireEvent(stoppedDispatcher, ev); } } });
public void run() { synchronized (UpdateManager.this) { AbstractEvent evt = (AbstractEvent) ((DocumentEvent)document).createEvent("SVGEvents"); String type; if (bridgeContext.isSVG12()) { type = "unload"; } else { type = "SVGUnload"; } evt.initEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, type, false, // canBubbleArg false); // cancelableArg ((EventTarget)(document.getDocumentElement())). dispatchEvent(evt); running = false; // Now shut everything down and disconnect // everything before we send the // UpdateMangerStopped event. scriptingEnvironment.interrupt(); updateRunnableQueue.getThread().halt(); bridgeContext.dispose(); // Send the UpdateManagerStopped event. UpdateManagerEvent ev = new UpdateManagerEvent (UpdateManager.this, null, null); fireEvent(stoppedDispatcher, ev); } } });
public void run() { synchronized (UpdateManager.this) { AbstractEvent evt = (AbstractEvent) ((DocumentEvent)document).createEvent("SVGEvents"); String type; if (bridgeContext.isSVG12()) { type = "unload"; } else { type = "SVGUnload"; } evt.initEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, type, false, // canBubbleArg false); // cancelableArg ((EventTarget)(document.getDocumentElement())). dispatchEvent(evt); running = false; // Now shut everything down and disconnect // everything before we send the // UpdateMangerStopped event. scriptingEnvironment.interrupt(); updateRunnableQueue.getThread().halt(); bridgeContext.dispose(); // Send the UpdateManagerStopped event. UpdateManagerEvent ev = new UpdateManagerEvent (UpdateManager.this, null, null); fireEvent(stoppedDispatcher, ev); } } });