Bug 182519 [SVG] SVG Chart Title Alignment does not work correctly when preview [0001]
Description: SVG Chart Title Alignment does not work correctly when preview. Build number: 2.2.0.v20070416-1013 Steps to reproduce: 1. New a Bar Chart, Output Format is SVG. 2. In "Format Chart" tab, select "Title" node, set Chart Title as "Bar Chart Title Bar Chart Title Bar Chart Title" and set Title Alignment as TopLeft. Expected result: Chart Title when preview is: "Bar Chart Title Bar Chart Title Bar Chart Title" Actual result: Chart Title when preview is: "Bar Chart Title Bar Chart Title Bar Chart Title". Error log: N/A
chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGGraphics2D.java
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);
	}
	
	protected Element createLine( double arg0, double arg1, double arg2,
			double arg3 )
	{
		Element elem = createElement( "line" ); 
		elem.setAttribute( "x1", Double.toString( arg0 ) ); 
		elem.setAttribute( "y1", Double.toString( arg1 ) ); 
		elem.setAttribute( "x2", Double.toString( arg2 ) ); 
		elem.setAttribute( "y2", Double.toString( arg3 ) ); 
		return elem;
	}
	protected Element createShape( Shape shape )
	{
		PathIterator pathIter = shape.getPathIterator( null );
		String pathStr = ""; 
		while ( !pathIter.isDone( ) )
		{
			double[] points = new double[6];
			int TYPE = pathIter.currentSegment( points );
			switch ( TYPE )