Class SVG12ScriptingEnvironment
java.lang.Object
org.apache.batik.bridge.BaseScriptingEnvironment
org.apache.batik.bridge.ScriptingEnvironment
org.apache.batik.bridge.svg12.SVG12ScriptingEnvironment
Manages scripting handlers for SVG 1.2 'handler' elements.
- Version:
- $Id$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classThe listener class for 'DOMNodeInserted' event.protected classThe listener class for 'DOMNodeRemoved' event.protected classThe SVGGlobal object.protected classTo handle a scripting event with an XML Events style handler.Nested classes/interfaces inherited from class ScriptingEnvironment
ScriptingEnvironment.EvaluateIntervalRunnable, ScriptingEnvironment.EvaluateRunnable, ScriptingEnvironment.EvaluateRunnableRunnable, ScriptingEnvironment.ScriptingEventListener, ScriptingEnvironment.Window -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant used to describe handler scripts.protected TriplyIndexedTableThe listeners for XML Events style handlers.Fields inherited from class ScriptingEnvironment
activateListener, beginListener, clickListener, domAttrModifiedListener, domNodeInsertedListener, domNodeRemovedListener, endListener, focusinListener, focusoutListener, keydownListener, keypressListener, keyupListener, listeners, mousedownListener, mousemoveListener, mouseoutListener, mouseoverListener, mouseupListener, repeatListener, SVG_DOM_EVENT, SVG_EVENT_ATTRS, svgAbortListener, svgErrorListener, svgResizeListener, svgScrollListener, svgUnloadListener, svgZoomListener, timer, updateManager, updateRunnableQueueFields inherited from class BaseScriptingEnvironment
ALTERNATE_EVENT_NAME, APPLICATION_ECMASCRIPT, bridgeContext, docPURL, document, EVENT_NAME, EVENT_SCRIPT_DESCRIPTION, executedScripts, INLINE_SCRIPT_DESCRIPTION, interpreter, languages, userAgent, windowObjects -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SVG12ScriptingEnvironment. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds DOM listeners to the document.protected voidAdds the scripting listeners to the given element.createWindow(Interpreter interp, String lang) Creates a new Window object.protected voidRemoves DOM listeners from the document.protected voidRemoves the scripting listeners from the given element.Methods inherited from class ScriptingEnvironment
addScriptingListeners, interrupt, removeScriptingListeners, runEventHandler, updateScriptingListenersMethods inherited from class BaseScriptingEnvironment
checkCompatibleScriptURL, dispatchSVGDocEvent, dispatchSVGLoad, dispatchSVGLoadEvent, dispatchSVGResizeEvent, dispatchSVGScrollEvent, dispatchSVGZoomEvent, getInterpreter, getInterpreter, getWindow, getWindow, handleInterpreterException, handleSecurityException, initializeEnvironment, isDynamicDocument, isDynamicElement, isDynamicElement, loadScript, loadScripts
-
Field Details
-
HANDLER_SCRIPT_DESCRIPTION
Constant used to describe handler scripts. {0} - URL of document containing script. {1} - Event type {2} - Event namespace {3} - line number of element.- See Also:
-
handlerScriptingListeners
The listeners for XML Events style handlers. Maps (event namespace, event local name, element) to a handler.
-
-
Constructor Details
-
SVG12ScriptingEnvironment
Creates a new SVG12ScriptingEnvironment.- Parameters:
ctx- the bridge context
-
-
Method Details
-
addDocumentListeners
protected void addDocumentListeners()Adds DOM listeners to the document.- Overrides:
addDocumentListenersin classScriptingEnvironment
-
removeDocumentListeners
protected void removeDocumentListeners()Removes DOM listeners from the document.- Overrides:
removeDocumentListenersin classScriptingEnvironment
-
addScriptingListenersOn
Adds the scripting listeners to the given element.- Overrides:
addScriptingListenersOnin classScriptingEnvironment
-
removeScriptingListenersOn
Removes the scripting listeners from the given element.- Overrides:
removeScriptingListenersOnin classScriptingEnvironment
-
createWindow
Creates a new Window object.- Overrides:
createWindowin classScriptingEnvironment
-