org.eclipse.birt.chart.internal.script
Class ChartScriptContext
java.lang.Object
org.eclipse.birt.chart.internal.script.ChartScriptContext
- All Implemented Interfaces:
- IChartScriptContext, java.io.Serializable
- public class ChartScriptContext
- extends java.lang.Object
- implements IChartScriptContext
ChartScriptContext
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChartScriptContext
public ChartScriptContext()
- The constructor.
getChartInstance
public Chart getChartInstance()
- Specified by:
getChartInstance
in interface IChartScriptContext
- Returns:
- Returns a runtime instance of the chart,or null if not available
yet.
setChartInstance
public void setChartInstance(Chart cm)
- Binding the script context with the chart instance
- Parameters:
cm
- Chart
getExternalContext
public IExternalContext getExternalContext()
- Specified by:
getExternalContext
in interface IChartScriptContext
- Returns:
- Returns the external context.
setExternalContext
public void setExternalContext(IExternalContext externalContext)
- Parameters:
externalContext
- the context of script
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in interface IChartScriptContext
- Returns:
- Returns the locale used by the engine.
setLocale
public void setLocale(java.util.Locale locale)
- Parameters:
locale
- Locale
getLogger
public ILogger getLogger()
- Specified by:
getLogger
in interface IChartScriptContext
- Returns:
- Returns a logger instance, to allow logging from script.
setLogger
public void setLogger(ILogger logger)
- Parameters:
logger
- Logger
Copyright © 2005 Actuate Corp. All rights reserved.