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
}
			applyStyles( model,
					(StyledComponent) token.peek( ),
					(EObject) component,
					externalProcessor );
			
			for ( Iterator itr = ( (EObject) component ).eContents( )
					.iterator( ); itr.hasNext( ); )
			{
				prepareComponent( model, token, itr.next( ), externalProcessor );
			}
			if ( pushed && !token.empty( ) )
			{
				token.pop( );
			}
		}
		else if ( component instanceof EList )
		{
			for ( Iterator litr = ( (EList) component ).iterator( ); litr.hasNext( ); )
			{
				prepareComponent( model, token, litr.next( ), externalProcessor );
			}
		}
	}
	private StyledComponent getStyledComponent( EObject obj )
	{
		if ( obj instanceof Block && obj.eContainer( ) instanceof Chart )
		{
			return StyledComponent.CHART_BACKGROUND_LITERAL;
		}