org.eclipse.birt.chart.script
Class ChartScriptContext

java.lang.Object
  extended by org.eclipse.birt.chart.script.ChartScriptContext
All Implemented Interfaces:
java.io.Serializable, IChartScriptContext

public class ChartScriptContext
extends java.lang.Object
implements IChartScriptContext

An internal implementation for IChartScriptContext

See Also:
Serialized Form

Constructor Summary
ChartScriptContext()
          The constructor.
 
Method Summary
 Chart getChartInstance()
           
 IExternalContext getExternalContext()
           
 java.util.Locale getLocale()
           
 ILogger getLogger()
           
 com.ibm.icu.util.ULocale getULocale()
           
 void setChartInstance(Chart cm)
          Binding the script context with the chart instance
 void setExternalContext(IExternalContext externalContext)
           
 void setLogger(ILogger logger)
          Sets associated logger.
 void setULocale(com.ibm.icu.util.ULocale locale)
          Sets associated locale.
 
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 of current context.

getULocale

public com.ibm.icu.util.ULocale getULocale()
Specified by:
getULocale in interface IChartScriptContext
Returns:
Returns the locale of current context.

setULocale

public void setULocale(com.ibm.icu.util.ULocale locale)
Sets associated locale.

Parameters:
locale - Locale

getLogger

public ILogger getLogger()
Specified by:
getLogger in interface IChartScriptContext
Returns:
Returns an ILogger instance, to allow logging from script.
See Also:
ILogger

setLogger

public void setLogger(ILogger logger)
Sets associated logger.

Parameters:
logger - Logger


Copyright © 2005-2008 Actuate Corp. All rights reserved.