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
ColorDefinition newBackcolor = style.getBackgroundColor( );
				Image newBackimage = style.getBackgroundImage( );
				Fill background = ( (Block) component ).getBackground( );
				if ( background == null
						|| ( background instanceof ColorDefinition && ( (ColorDefinition) background ).getTransparency( ) == 0 ) )
				{
					if ( newBackcolor != null )
					{
						( (Block) component ).setBackground( newBackcolor );
					}
					if ( newBackimage != null )
					{
						( (Block) component ).setBackground( newBackimage );
					}
				}
				
				Insets ins = ( (Block) component ).getInsets( );
				Insets padding = style.getPadding( );
				if ( padding != null )
				{
					if ( ins == null )
					{
						ins = InsetsImpl.create( 0, 0, 0, 0 );
						( (Block) component ).setInsets( ins );
						
						ins.setTop( padding.getTop( ) );
						ins.setLeft( padding.getLeft( ) );
						ins.setBottom( padding.getBottom( ) );
						ins.setRight( padding.getRight( ) );
					}