public static string CreateMonitor(VsaScriptEngine engine, ISvgWindow window, object scriptOrClosure, ulong delay, bool isInterval)
        {
            ScriptTimerMonitor stm = new ScriptTimerMonitor(engine, window, scriptOrClosure, delay, isInterval);

            timerMonitors.Add(stm);
            return("" + stm.timer.GetHashCode());
        }
Beispiel #2
0
        public ISvgRect GetBBox()
        {
            ISvgWindow svgWnd = this.OwnerDocument.Window;

            if (svgWnd == null || svgWnd.Renderer == null)
            {
                return(null);
            }

            return(svgWnd.Renderer.GetRenderedBounds(this, 0));
        }
 public ScriptTimerMonitor(VsaScriptEngine engine, ISvgWindow window, object scriptOrClosure, ulong delay, bool isInterval)
 {
     if (delay == 0)
     delay = 1;
       this.engine = engine;
       this.window = window;
       this.scriptOrClosure = scriptOrClosure;
       this.timer = new Timer(delay);
       this.timer.AutoReset = isInterval;
       this.timer.Elapsed += new ElapsedEventHandler(this.EventHandler);
       this.timer.Enabled = true;
 }
 public ScriptTimerMonitor(VsaScriptEngine engine, ISvgWindow window, object scriptOrClosure, ulong delay, bool isInterval)
 {
     if (delay == 0)
     {
         delay = 1;
     }
     this.engine          = engine;
     this.window          = window;
     this.scriptOrClosure = scriptOrClosure;
     this.timer           = new Timer(delay);
     this.timer.AutoReset = isInterval;
     this.timer.Elapsed  += new ElapsedEventHandler(this.EventHandler);
     this.timer.Enabled   = true;
 }
 public ScriptEventMonitor(VsaScriptEngine engine, IAttribute att, ISvgWindow window)
 {
     this.att = att;
       this.engine = engine;
       this.window = window;
 }
 public static string CreateMonitor(VsaScriptEngine engine, ISvgWindow window, object scriptOrClosure, ulong delay, bool isInterval)
 {
     ScriptTimerMonitor stm = new ScriptTimerMonitor(engine, window, scriptOrClosure, delay, isInterval);
       timerMonitors.Add(stm);
       return ""+stm.timer.GetHashCode();
 }
 public ScriptEventMonitor(VsaScriptEngine engine, IAttribute att, ISvgWindow window)
 {
     this.att    = att;
     this.engine = engine;
     this.window = window;
 }