Bug 173612 [Regression] Chart Title background color and shadow color is not shown when preview [0001]
Description: Chart Title background color and shadow color is not shown when preview. Build number: 2.2.0.v20070209-0630 Steps to reproduce: 1. Open the attached design file, double click the chart to open the chart builder. 2. Preview the attached design file. Expected result: Chart Title background color and shadow color is not shown when preview as in chart builder. Actual result: Chart Title background color and shadow color is only shown in chart builder. Error log: N/A
chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGGraphics2D.java
endColor.setAttribute( "stop-color", serializeHighlightToString( paint.getColor2( ) ) ); 			
		else
			endColor.setAttribute( "stop-color", serializeToString( paint.getColor2( ) ) ); 
		alpha = alphaToString( paint.getColor2( ) );
		if ( alpha != null )
			endColor.setAttribute( "stop-opacity", alpha ); 
		
		elem.appendChild( endColor );
		return elem;
	}
	
	private String serializeHighlightToString( Color cd )
	{
		if ( cd != null )
		{
			int red = (cd.getRed( ) + 255 ) / 2;
			int green = (cd.getGreen( ) + 255 ) / 2 ;
			int blue = (cd.getBlue( ) + 255 ) / 2 ;
			String r = Integer.toHexString( red );
			if ( red <= 0xF )
				r = "0" + r; 
			String g = Integer.toHexString( green );
			if ( green <= 0xF )
				g = "0" + g; 
			String b = Integer.toHexString( blue);
			if ( blue <= 0xF )
				b = "0" + b; 
			return "#" + r + g + b; 
		}
		return serializeToString(cd);