Bug 180249 BPS39 - Centralized Chart Engine API
Centralized and clearer Engine API -Create one single entry point class ChartEngine in an api package so it's easy to find (with access to IGenerator, Serializer, Device Renderers) -Create a new IGenerator interface instead of exposing the Generator class.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/factory/Generator.java
while ( type!= null &&
					!updateHierarchyStyle( model,
					type,
					externalProcessor,
					rStyle ) )
			{
				type = getParentType( type );
			}
		}
		while ( type!= null && 
				!updateHierarchyStyle( model, type, implicitProcessor, rStyle )	)
		{
			type = getParentType( type );
		}
		return rStyle.style;
	}
	private StyledComponent getParentType( StyledComponent type )
	{
		switch ( type.getValue( ) )
		{
			case StyledComponent.CHART_ALL :
				return null;
			case StyledComponent.CHART_TITLE :
				return StyledComponent.CHART_BACKGROUND_LITERAL;
			case StyledComponent.CHART_BACKGROUND :
				return StyledComponent.CHART_ALL_LITERAL;
			case StyledComponent.PLOT_BACKGROUND :
				return StyledComponent.CHART_BACKGROUND_LITERAL;
			case StyledComponent.LEGEND_BACKGROUND :
				return StyledComponent.CHART_BACKGROUND_LITERAL;