|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.eclipse.birt.chart.script.AbstractScriptHandler<IChartEventHandler>
org.eclipse.birt.chart.script.ScriptHandler
public final class ScriptHandler
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.
IChartEventHandler
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
AFTER_COMPUTATIONS
|
static java.lang.String |
AFTER_DRAW_AXIS_LABEL
|
static java.lang.String |
AFTER_DRAW_AXIS_TITLE
|
static java.lang.String |
AFTER_DRAW_BLOCK
|
static java.lang.String |
AFTER_DRAW_DATA_POINT
|
static java.lang.String |
AFTER_DRAW_DATA_POINT_LABEL
|
static java.lang.String |
AFTER_DRAW_ELEMENT
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
AFTER_DRAW_FITTING_CURVE
|
static java.lang.String |
AFTER_DRAW_LEGEND_ENTRY
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
AFTER_DRAW_LEGEND_ITEM
|
static java.lang.String |
AFTER_DRAW_MARKER
|
static java.lang.String |
AFTER_DRAW_MARKER_LINE
|
static java.lang.String |
AFTER_DRAW_MARKER_RANGE
|
static java.lang.String |
AFTER_DRAW_SERIES
|
static java.lang.String |
AFTER_DRAW_SERIES_TITLE
|
static java.lang.String |
AFTER_LAYOUT
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
BASE_VALUE
The pre-defined chart variable name to access base category data. |
static java.lang.String |
BEFORE_COMPUTATIONS
|
static java.lang.String |
BEFORE_DRAW_AXIS_LABEL
|
static java.lang.String |
BEFORE_DRAW_AXIS_TITLE
|
static java.lang.String |
BEFORE_DRAW_BLOCK
|
static java.lang.String |
BEFORE_DRAW_DATA_POINT
|
static java.lang.String |
BEFORE_DRAW_DATA_POINT_LABEL
|
static java.lang.String |
BEFORE_DRAW_ELEMENT
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
BEFORE_DRAW_FITTING_CURVE
|
static java.lang.String |
BEFORE_DRAW_LEGEND_ENTRY
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
BEFORE_DRAW_LEGEND_ITEM
|
static java.lang.String |
BEFORE_DRAW_MARKER
|
static java.lang.String |
BEFORE_DRAW_MARKER_LINE
|
static java.lang.String |
BEFORE_DRAW_MARKER_RANGE
|
static java.lang.String |
BEFORE_DRAW_SERIES
|
static java.lang.String |
BEFORE_DRAW_SERIES_TITLE
|
static java.lang.String |
BEFORE_LAYOUT
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
COMP_LIST
|
static java.lang.String |
FINISH_COMPUTE_SERIES
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
FINISH_GENERATION
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
FINISH_RENDERING
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
ID
The variable names for highlight and toggle visibility functions. |
static java.lang.String |
LABEL_LIST
|
static java.lang.String |
ORTHOGONAL_VALUE
The pre-defined chart variable name to access orthogonal value data. |
static java.lang.String |
SERIES_VALUE
The pre-defined chart variable name to access series value data. |
static java.lang.String |
START_COMPUTE_SERIES
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
START_GENERATION
Deprecated. This is kept for backward compatibility only. |
static java.lang.String |
START_RENDERING
Deprecated. This is kept for backward compatibility only. |
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_RENDERING |
Fields inherited from class org.mozilla.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
ScriptHandler()
The constructor. |
Method Summary | |
---|---|
java.lang.Object |
jsFunction_clone(java.lang.Object eo)
Deprecated. Note used anymore. This is kept for backward compatibility only. |
java.lang.Object |
jsFunction_getDesignTimeModel()
Deprecated. Not used anymore. This is kept for backward compatibility only. |
java.lang.Object |
jsFunction_getGeneratedChartState()
Deprecated. Not used anymore. This is kept for backward compatibility only. |
java.lang.Object |
jsFunction_getLocale()
Deprecated. Call IChartScriptContext.getLocale() instead. This is kept for backward compatibility only. |
java.lang.Object |
jsFunction_getRunTimeModel()
Deprecated. Call IChartScriptContext.getChartInstance() instead. This is kept for backward compatibility only. |
void |
setDesignTimeModel(Chart cmDesignTime)
Deprecated. Not used anymore. This is kept for backward compatibility only. |
void |
setGeneratedChartState(GeneratedChartState gcs)
Deprecated. Not used anymore. This is kept for backward compatibility only. |
void |
setRunTimeModel(Chart cmRunTime)
Deprecated. Not used anymore. Use IChartScriptContext to store the run-time model now. This is kept for backward compatibility only. |
Methods inherited from class org.eclipse.birt.chart.script.AbstractScriptHandler |
---|
callFunction, callFunction, callFunction, evaluate, getClassName, getScope, init, register, registerExistingScriptableObject, registerNewScriptableObject, registerVariable, setLocale, setScriptClassLoader, setScriptContext, unregisterVariable |
Methods inherited from class org.mozilla.javascript.ScriptableObject |
---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String START_GENERATION
public static final java.lang.String FINISH_GENERATION
public static final java.lang.String BEFORE_LAYOUT
public static final java.lang.String AFTER_LAYOUT
public static final java.lang.String BEFORE_COMPUTATIONS
public static final java.lang.String AFTER_COMPUTATIONS
public static final java.lang.String START_RENDERING
public static final java.lang.String FINISH_RENDERING
public static final java.lang.String START_COMPUTE_SERIES
public static final java.lang.String FINISH_COMPUTE_SERIES
public static final java.lang.String BEFORE_DRAW_ELEMENT
public static final java.lang.String AFTER_DRAW_ELEMENT
public static final java.lang.String BEFORE_DRAW_BLOCK
public static final java.lang.String AFTER_DRAW_BLOCK
public static final java.lang.String BEFORE_DRAW_LEGEND_ENTRY
public static final java.lang.String AFTER_DRAW_LEGEND_ENTRY
public static final java.lang.String BEFORE_DRAW_LEGEND_ITEM
public static final java.lang.String AFTER_DRAW_LEGEND_ITEM
public static final java.lang.String BEFORE_DRAW_SERIES
public static final java.lang.String AFTER_DRAW_SERIES
public static final java.lang.String BEFORE_DRAW_SERIES_TITLE
public static final java.lang.String AFTER_DRAW_SERIES_TITLE
public static final java.lang.String BEFORE_DRAW_MARKER
public static final java.lang.String AFTER_DRAW_MARKER
public static final java.lang.String BEFORE_DRAW_MARKER_LINE
public static final java.lang.String AFTER_DRAW_MARKER_LINE
public static final java.lang.String BEFORE_DRAW_MARKER_RANGE
public static final java.lang.String AFTER_DRAW_MARKER_RANGE
public static final java.lang.String BEFORE_DRAW_DATA_POINT
public static final java.lang.String AFTER_DRAW_DATA_POINT
public static final java.lang.String BEFORE_DRAW_DATA_POINT_LABEL
public static final java.lang.String AFTER_DRAW_DATA_POINT_LABEL
public static final java.lang.String BEFORE_DRAW_FITTING_CURVE
public static final java.lang.String AFTER_DRAW_FITTING_CURVE
public static final java.lang.String BEFORE_DRAW_AXIS_LABEL
public static final java.lang.String AFTER_DRAW_AXIS_LABEL
public static final java.lang.String BEFORE_DRAW_AXIS_TITLE
public static final java.lang.String AFTER_DRAW_AXIS_TITLE
public static final java.lang.String BASE_VALUE
public static final java.lang.String ORTHOGONAL_VALUE
public static final java.lang.String SERIES_VALUE
public static final java.lang.String ID
public static final java.lang.String COMP_LIST
public static final java.lang.String LABEL_LIST
Constructor Detail |
---|
public ScriptHandler()
Method Detail |
---|
public java.lang.Object jsFunction_getDesignTimeModel()
public java.lang.Object jsFunction_getRunTimeModel()
public java.lang.Object jsFunction_getGeneratedChartState()
public final java.lang.Object jsFunction_getLocale()
public final java.lang.Object jsFunction_clone(java.lang.Object eo)
eo
- An EMF generated model object to be cloned
public final void setDesignTimeModel(Chart cmDesignTime)
cm
- public final void setRunTimeModel(Chart cmRunTime)
cm
- public final void setGeneratedChartState(GeneratedChartState gcs)
gcs
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |