Package org.eclipse.birt.chart.script
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
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.ScriptableObject.KeyComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.This is kept for backward compatibility only.static final Stringstatic final StringDeprecated.This is kept for backward compatibility only.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.This is kept for backward compatibility only.static final StringThe pre-defined chart variable name to access base category data.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.This is kept for backward compatibility only.static final Stringstatic final StringDeprecated.This is kept for backward compatibility only.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.This is kept for backward compatibility only.static final Stringstatic final StringDeprecated.This is kept for backward compatibility only.static final StringDeprecated.This is kept for backward compatibility only.static final StringDeprecated.This is kept for backward compatibility only.static final StringThe variable names for highlight and toggle visibility functions.static final Stringstatic final StringThe pre-defined chart variable name to access orthogonal value data.static final StringThe pre-defined chart variable name to access series name.static final StringDeprecated.This is kept for backward compatibility only.static final StringDeprecated.This is kept for backward compatibility only.static final StringDeprecated.This is kept for backward compatibility only.static final StringThe pre-defined chart variable name to access base category data.static final StringThe pre-defined chart variable name to access series name.static final StringThe pre-defined chart variable name to access orthogonal value data.Fields inherited from class org.eclipse.birt.chart.script.AbstractScriptHandler
AFTER_DATA_SET_FILLED, AFTER_GENERATION, AFTER_RENDERING, BEFORE_DATA_SET_FILLED, BEFORE_GENERATION, BEFORE_RENDERINGFields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Note used anymore.Deprecated.Not used anymore.Deprecated.Not used anymore.Deprecated.Call IChartScriptContext.getLocale() instead.Deprecated.Call IChartScriptContext.getChartInstance() instead.voidsetDesignTimeModel(Chart cmDesignTime) Deprecated.Not used anymore.voidDeprecated.Not used anymore.voidsetRunTimeModel(Chart cmRunTime) Deprecated.Not used anymore.Methods inherited from class org.eclipse.birt.chart.script.AbstractScriptHandler
callFunction, callFunction, callFunction, evaluate, getClassName, getScope, init, register, registerExistingScriptableObject, registerNewScriptableObject, registerVariable, setLocale, setScriptClassLoader, setScriptContext, unregisterVariableMethods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
-
Field Details
-
START_GENERATION
Deprecated.This is kept for backward compatibility only.- See Also:
-
FINISH_GENERATION
Deprecated.This is kept for backward compatibility only.- See Also:
-
BEFORE_LAYOUT
Deprecated.This is kept for backward compatibility only.- See Also:
-
AFTER_LAYOUT
Deprecated.This is kept for backward compatibility only.- See Also:
-
BEFORE_COMPUTATIONS
- See Also:
-
AFTER_COMPUTATIONS
- See Also:
-
START_RENDERING
Deprecated.This is kept for backward compatibility only.- See Also:
-
FINISH_RENDERING
Deprecated.This is kept for backward compatibility only.- See Also:
-
START_COMPUTE_SERIES
Deprecated.This is kept for backward compatibility only.- See Also:
-
FINISH_COMPUTE_SERIES
Deprecated.This is kept for backward compatibility only.- See Also:
-
BEFORE_DRAW_ELEMENT
Deprecated.This is kept for backward compatibility only.- See Also:
-
AFTER_DRAW_ELEMENT
Deprecated.This is kept for backward compatibility only.- See Also:
-
BEFORE_DRAW_BLOCK
- See Also:
-
AFTER_DRAW_BLOCK
- See Also:
-
BEFORE_DRAW_LEGEND_ENTRY
Deprecated.This is kept for backward compatibility only.- See Also:
-
AFTER_DRAW_LEGEND_ENTRY
Deprecated.This is kept for backward compatibility only.- See Also:
-
BEFORE_DRAW_LEGEND_ITEM
- See Also:
-
AFTER_DRAW_LEGEND_ITEM
- See Also:
-
BEFORE_DRAW_SERIES
- See Also:
-
AFTER_DRAW_SERIES
- See Also:
-
BEFORE_DRAW_SERIES_TITLE
- See Also:
-
AFTER_DRAW_SERIES_TITLE
- See Also:
-
BEFORE_DRAW_MARKER
- See Also:
-
AFTER_DRAW_MARKER
- See Also:
-
BEFORE_DRAW_MARKER_LINE
- See Also:
-
AFTER_DRAW_MARKER_LINE
- See Also:
-
BEFORE_DRAW_MARKER_RANGE
- See Also:
-
AFTER_DRAW_MARKER_RANGE
- See Also:
-
BEFORE_DRAW_DATA_POINT
- See Also:
-
AFTER_DRAW_DATA_POINT
- See Also:
-
BEFORE_DRAW_DATA_POINT_LABEL
- See Also:
-
AFTER_DRAW_DATA_POINT_LABEL
- See Also:
-
BEFORE_DRAW_FITTING_CURVE
- See Also:
-
AFTER_DRAW_FITTING_CURVE
- See Also:
-
BEFORE_DRAW_AXIS_LABEL
- See Also:
-
AFTER_DRAW_AXIS_LABEL
- See Also:
-
BEFORE_DRAW_AXIS_TITLE
- See Also:
-
AFTER_DRAW_AXIS_TITLE
- See Also:
-
BASE_VALUE
The pre-defined chart variable name to access base category data.- See Also:
-
VARIABLE_CATEGORY
The pre-defined chart variable name to access base category data.- See Also:
-
ORTHOGONAL_VALUE
The pre-defined chart variable name to access orthogonal value data.- See Also:
-
VARIABLE_VALUE
The pre-defined chart variable name to access orthogonal value data.- See Also:
-
SERIES_VALUE
The pre-defined chart variable name to access series name.- See Also:
-
VARIABLE_SERIES
The pre-defined chart variable name to access series name.- See Also:
-
ID
The variable names for highlight and toggle visibility functions.- See Also:
-
COMP_LIST
- See Also:
-
LABEL_LIST
- See Also:
-
-
Constructor Details
-
ScriptHandler
public ScriptHandler()The constructor.
-
-
Method Details
-
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.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.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.Call IChartScriptContext.getLocale() instead. This is kept for backward compatibility only.- Returns:
- The locale associated with the generation request
-
jsFunction_clone
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.Not used anymore. This is kept for backward compatibility only.- Parameters:
cm-
-
setRunTimeModel
Deprecated.Not used anymore. Use IChartScriptContext to store the run-time model now. This is kept for backward compatibility only.- Parameters:
cm-
-
setGeneratedChartState
Deprecated.Not used anymore. This is kept for backward compatibility only.- Parameters:
gcs-
-