org.apache.batik.bridge
Class ScriptingEnvironment

java.lang.Object
  |
  +--org.apache.batik.bridge.BaseScriptingEnvironment
        |
        +--org.apache.batik.bridge.ScriptingEnvironment

public class ScriptingEnvironment
extends BaseScriptingEnvironment

This class contains the informations needed by the SVG scripting.


Inner Class Summary
protected  class ScriptingEnvironment.EvaluateIntervalRunnable
          To interpret a script.
protected  class ScriptingEnvironment.EvaluateRunnable
          To interpret a script.
protected  class ScriptingEnvironment.EvaluateRunnableRunnable
          To call a Runnable.
protected  class ScriptingEnvironment.EventListenerWrapper
          To wrap an event listener.
protected  class ScriptingEnvironment.Window
          Represents the window object of this environment.
 
Inner classes inherited from class org.apache.batik.bridge.BaseScriptingEnvironment
BaseScriptingEnvironment.Window
 
Field Summary
protected  java.util.Timer timer
          The timer for periodic or delayed tasks.
protected  UpdateManager updateManager
          The update manager.
protected  RunnableQueue updateRunnableQueue
          The update runnable queue.
 
Fields inherited from class org.apache.batik.bridge.BaseScriptingEnvironment
ALTERNATE_EVENT_NAME, bridgeContext, document, EVENT_NAME, userAgent
 
Constructor Summary
ScriptingEnvironment(BridgeContext ctx)
          Creates a new ScriptingEnvironment.
 
Method Summary
 Window createWindow(Interpreter interp, java.lang.String lang)
          Creates a new Window object.
 void interrupt()
          Interrupts the periodic tasks.
 void runEventHandler(java.lang.String script, Event evt, java.lang.String lang)
          Runs an event handler.
 
Methods inherited from class org.apache.batik.bridge.BaseScriptingEnvironment
createWindow, dispatchSVGLoad, dispatchSVGLoadEvent, handleInterpreterException, initializeEnvironment, isDynamicDocument, isDynamicElement, loadScripts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timer

protected java.util.Timer timer
The timer for periodic or delayed tasks.

updateManager

protected UpdateManager updateManager
The update manager.

updateRunnableQueue

protected RunnableQueue updateRunnableQueue
The update runnable queue.
Constructor Detail

ScriptingEnvironment

public ScriptingEnvironment(BridgeContext ctx)
Creates a new ScriptingEnvironment.
Parameters:
ctx - the bridge context
Method Detail

createWindow

public Window createWindow(Interpreter interp,
                           java.lang.String lang)
Creates a new Window object.
Overrides:
createWindow in class BaseScriptingEnvironment

runEventHandler

public void runEventHandler(java.lang.String script,
                            Event evt,
                            java.lang.String lang)
Runs an event handler.

interrupt

public void interrupt()
Interrupts the periodic tasks.


Copyright © 2002 Apache Software Foundation. All Rights Reserved.