org.eclipse.birt.chart.internal.script
Class ChartScriptContext

java.lang.Object
  extended byorg.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

Constructor Summary
ChartScriptContext()
          The constructor.
 
Method Summary
 Chart getChartInstance()
           
 IExternalContext getExternalContext()
           
 java.util.Locale getLocale()
           
 ILogger getLogger()
           
 void setChartInstance(Chart cm)
          Binding the script context with the chart instance
 void setExternalContext(IExternalContext externalContext)
           
 void setLocale(java.util.Locale locale)
           
 void setLogger(ILogger logger)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartScriptContext

public ChartScriptContext()
The constructor.

Method Detail

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.