# Deprecated API

## Contents

- Interfaces
- Classes
- Enums
- Fields
- Methods
- Constructors
- Enum Constants

Deprecated Interfaces
Interface
Description
org.eclipse.birt.chart.model.component.ChartPreferences
only reserved for compatibility
org.eclipse.birt.chart.model.data.Rule
only reserved for compatibility

Deprecated Classes
Class
Description
org.eclipse.birt.chart.model.component.impl.ChartPreferencesImpl
only reserved for compatibility
org.eclipse.birt.chart.model.data.impl.RuleImpl
only reserved for compatibility

Deprecated Enums
Enum
Description
org.eclipse.birt.chart.model.attribute.RuleType
only reserved for compatibility

Deprecated Fields
Field
Description
org.eclipse.birt.chart.device.IStructureDefinitionListener.AFTER_DRAW_ELEMENT
Not used anymore. This is kept just for backward compatibility.
org.eclipse.birt.chart.device.IStructureDefinitionListener.BEFORE_DRAW_ELEMENT
Not used anymore. This is kept just for backward compatibility.
org.eclipse.birt.chart.script.ScriptHandler.AFTER_DRAW_ELEMENT
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.AFTER_DRAW_LEGEND_ENTRY
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.AFTER_LAYOUT
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.BEFORE_DRAW_ELEMENT
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.BEFORE_DRAW_LEGEND_ENTRY
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.BEFORE_LAYOUT
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.FINISH_COMPUTE_SERIES
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.FINISH_GENERATION
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.FINISH_RENDERING
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.START_COMPUTE_SERIES
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.START_GENERATION
This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.START_RENDERING
This is kept for backward compatibility only.

Deprecated Methods
Method
Description
org.eclipse.birt.chart.api.ChartEngine.getSerializer()
The Serializer instance is decoupled from the ChartEngine. To obtain a instance of SerializerImpl use: SerializerImpl.instance( ).
org.eclipse.birt.chart.computation.SeriesNameFormat.getSeriesNameFormat(SeriesDefinition, ULocale)
to use `SeriesNameFormat.getSeriesNameFormat(SeriesDefinition, ULocale, boolean)`
org.eclipse.birt.chart.datafeed.IDataSetProcessor.getLocale()
use `IDataSetProcessor.getULocale()` instead.
org.eclipse.birt.chart.device.IDeviceRenderer.getLocale()
use `IDeviceRenderer.getULocale()` instead.
org.eclipse.birt.chart.device.IDisplayServer.getLocale()
use `IDisplayServer.getULocale()` instead.
org.eclipse.birt.chart.device.ITextMetrics.getLocale()
use `ITextMetrics.getULocale()` instead.
org.eclipse.birt.chart.event.ArcRenderEvent.setEndAngle(double)
Use
invalid reference

    #setAngleExtent()

instead.
org.eclipse.birt.chart.factory.Generator.build(IDisplayServer, Chart, Scriptable, Bounds, RunTimeContext)
use `Generator.build(IDisplayServer, Chart, Bounds, IExternalContext, RunTimeContext)` instead.
org.eclipse.birt.chart.factory.Generator.build(IDisplayServer, Chart, Scriptable, Bounds, RunTimeContext, IStyleProcessor)
use `Generator.build(IDisplayServer, Chart, Bounds, IExternalContext, RunTimeContext, IStyleProcessor)` instead.
org.eclipse.birt.chart.factory.Generator.prepare(Chart, IExternalContext, IScriptClassLoader, Locale)
use `Generator.prepare(Chart, IExternalContext, IScriptClassLoader, ULocale)` instead.
org.eclipse.birt.chart.factory.IDataRowExpressionEvaluator.evaluateGlobal(String)
Not used anymore. use `IDataRowExpressionEvaluator.evaluate(String)` instead.
org.eclipse.birt.chart.factory.IMessageLookup.getMessageValue(String, Locale)
use `IMessageLookup.getMessageValue(String, ULocale)` instead.
org.eclipse.birt.chart.factory.RunTimeContext.getLocale()
use `RunTimeContext.getULocale()` instead.
org.eclipse.birt.chart.factory.RunTimeContext.setLocale(Locale)
use `RunTimeContext.setULocale(ULocale)` instead.
org.eclipse.birt.chart.model.attribute.DateFormatSpecifier.format(Calendar, Locale)
org.eclipse.birt.chart.model.attribute.FractionNumberFormatSpecifier.format(double, Locale)
org.eclipse.birt.chart.model.attribute.impl.AttributeFactoryImpl.getPackage()
org.eclipse.birt.chart.model.attribute.JavaDateFormatSpecifier.format(Calendar, Locale)
org.eclipse.birt.chart.model.attribute.JavaNumberFormatSpecifier.format(double, Locale)
org.eclipse.birt.chart.model.attribute.Marker.getIconPalette()
Deprecated. Use Fill property instead. This is kept just to maintain compatibility with old models.
org.eclipse.birt.chart.model.attribute.Marker.setIconPalette(Palette)
Deprecated. Use Fill property instead. This is kept just to maintain compatibility with old models.
org.eclipse.birt.chart.model.attribute.NumberFormatSpecifier.format(double, Locale)
org.eclipse.birt.chart.model.attribute.Palette.update(int)
to use `Palette.shift(int)`
org.eclipse.birt.chart.model.component.ComponentFactory.createChartPreferences()
only reserved for compatibility
org.eclipse.birt.chart.model.component.impl.ComponentFactoryImpl.getPackage()
org.eclipse.birt.chart.model.data.DataFactory.createRule()
only reserved for compatibility
org.eclipse.birt.chart.model.data.impl.DataFactoryImpl.getPackage()
org.eclipse.birt.chart.model.data.Query.getRules()
only reserved for compatibility
org.eclipse.birt.chart.model.impl.ModelFactoryImpl.getPackage()
org.eclipse.birt.chart.model.layout.impl.LayoutFactoryImpl.getPackage()
org.eclipse.birt.chart.model.Serializer.loadPreferences(InputStream)
only reserved for compatibility
org.eclipse.birt.chart.model.Serializer.savePreferences(ChartPreferences, OutputStream)
only reserved for compatibility
org.eclipse.birt.chart.model.type.impl.TypeFactoryImpl.getPackage()
org.eclipse.birt.chart.model.type.LineSeries.getMarker()
Use Markers property instead. This is kept just to maintain the compatibility with old models.
org.eclipse.birt.chart.model.type.LineSeries.setMarker(Marker)
Use Markers property instead. This is kept just to maintain the compatibility with old models.
org.eclipse.birt.chart.render.IActionRenderer.processAction(Action, StructureSource)
use `IActionRenderer.processAction(Action, StructureSource, RunTimeContext)` instead
org.eclipse.birt.chart.script.AbstractScriptContext.getLocale()
Use `AbstractScriptContext.getULocale()` instead.
org.eclipse.birt.chart.script.AbstractScriptHandler.setLocale(ULocale)
Not used anymore. Use IChartScriptContext to store the locale now. This is kept for backward compatibility only.
org.eclipse.birt.chart.script.IChartEventHandler.afterDrawLegendEntry(Label, IChartScriptContext)
Since 2.2.0 use afterDrawLegendItem( ) instead
org.eclipse.birt.chart.script.IChartEventHandler.beforeDrawLegendEntry(Label, IChartScriptContext)
Since 2.2.0 use beforeDrawLegendItem( ) instead
org.eclipse.birt.chart.script.IScriptContext.getLocale()
Use `IScriptContext.getULocale()` instead.
org.eclipse.birt.chart.script.ScriptHandler.jsFunction_clone(Object)
Note used anymore. This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.jsFunction_getDesignTimeModel()
Not used anymore. This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.jsFunction_getGeneratedChartState()
Not used anymore. This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.jsFunction_getLocale()
Call IChartScriptContext.getLocale() instead. This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.jsFunction_getRunTimeModel()
Call IChartScriptContext.getChartInstance() instead. This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.setDesignTimeModel(Chart)
Not used anymore. This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.setGeneratedChartState(GeneratedChartState)
Not used anymore. This is kept for backward compatibility only.
org.eclipse.birt.chart.script.ScriptHandler.setRunTimeModel(Chart)
Not used anymore. Use IChartScriptContext to store the run-time model now. This is kept for backward compatibility only.

Deprecated Constructors
Constructor
Description
org.eclipse.birt.chart.exception.ChartException(int, String)
use `ChartException(String, int, String)` instead.
org.eclipse.birt.chart.exception.ChartException(int, String, Object[], ResourceBundle)
use `ChartException(String, int, String, Object[], ResourceBundle)` instead.
org.eclipse.birt.chart.exception.ChartException(int, String, Object[], ResourceBundle, Throwable)
use (`ChartException(String, int, String, Object[], ResourceBundle, Throwable)` instead.
org.eclipse.birt.chart.exception.ChartException(int, String, ResourceBundle)
use `ChartException(String, int, String, ResourceBundle)` instead.
org.eclipse.birt.chart.exception.ChartException(int, String, ResourceBundle, Throwable)
use `ChartException(String, int, String, ResourceBundle, Throwable)` instead.
org.eclipse.birt.chart.exception.ChartException(int, Throwable)
use `ChartException(String, int, Throwable)` instead.
org.eclipse.birt.chart.util.CDateTime(TimeZone, Locale)
use `CDateTime(TimeZone, ULocale)` instead.
org.eclipse.birt.chart.util.CDateTime(Locale)
use `CDateTime(ULocale)` instead.

Deprecated Enum Constants
Enum Constant
Description
org.eclipse.birt.chart.model.attribute.TriggerCondition.MOUSE_CLICK_LITERAL
use ONCLICK_LITERAL instead.
org.eclipse.birt.chart.model.attribute.TriggerCondition.MOUSE_HOVER_LITERAL
use ONMOUSEOVER_LITERAL instead.