Class ScriptHandler

java.lang.Object
org.mozilla.javascript.ScriptableObject
org.eclipse.birt.chart.script.AbstractScriptHandler<IChartEventHandler>
org.eclipse.birt.chart.script.ScriptHandler
All Implemented Interfaces:
Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable, org.mozilla.javascript.SymbolScriptable

public final class ScriptHandler extends AbstractScriptHandler<IChartEventHandler>
This class forms the basis of script handling in the charting library. It creates a default scope and/or subclasses from a predefined scope. It also provides convenience methods for execution of functions defined in the scope.
See Also:
  • Field Details

  • Constructor Details

    • ScriptHandler

      public ScriptHandler()
      The constructor.
  • Method Details

    • jsFunction_getDesignTimeModel

      @Deprecated public Object jsFunction_getDesignTimeModel()
      Deprecated.
      Not used anymore. This is kept for backward compatibility only.
      Returns:
      An instance of the chart model used at design time
    • jsFunction_getRunTimeModel

      @Deprecated public Object jsFunction_getRunTimeModel()
      Deprecated.
      Call IChartScriptContext.getChartInstance() instead. This is kept for backward compatibility only.
      Returns:
      An instance of the chart model used at run time
    • jsFunction_getGeneratedChartState

      @Deprecated public Object jsFunction_getGeneratedChartState()
      Deprecated.
      Not used anymore. This is kept for backward compatibility only.
      Returns:
      An instance of the run time model coupled with a computations and series filled with datasets
    • jsFunction_getLocale

      @Deprecated public Object jsFunction_getLocale()
      Deprecated.
      Call IChartScriptContext.getLocale() instead. This is kept for backward compatibility only.
      Returns:
      The locale associated with the generation request
    • jsFunction_clone

      @Deprecated public Object jsFunction_clone(Object eo)
      Deprecated.
      Note used anymore. This is kept for backward compatibility only.
      Parameters:
      eo - An EMF generated model object to be cloned
      Returns:
      A cloned instance of the specified EMF generated model object
    • setDesignTimeModel

      @Deprecated public void setDesignTimeModel(Chart cmDesignTime)
      Deprecated.
      Not used anymore. This is kept for backward compatibility only.
      Parameters:
      cm -
    • setRunTimeModel

      @Deprecated public void setRunTimeModel(Chart cmRunTime)
      Deprecated.
      Not used anymore. Use IChartScriptContext to store the run-time model now. This is kept for backward compatibility only.
      Parameters:
      cm -
    • setGeneratedChartState

      @Deprecated public void setGeneratedChartState(GeneratedChartState gcs)
      Deprecated.
      Not used anymore. This is kept for backward compatibility only.
      Parameters:
      gcs -