Bug 195951 Focus for PNG does not work [13]
Description: Focus for PNG does not work. Build number: 2.2.0.v20070710-1223 Steps to reproduce: 1. New a Chart, set Output Format as PNG, in "Format Chart" tab, add interactivity for Value Series, Event: Focus, Action: Hyperlink or invoke script. 2. Preview, focus in Value Series. Expected result: Interactivity works. Actual result: It does not work. Error log: N/A
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/JavaxImageIOWriter.java
{
			addScriptCallBack( sa,
					sb,
					sa.getActionForCondition( TriggerCondition.ONMOUSEOVER_LITERAL ),
					getJSMethodName( TriggerCondition.ONMOUSEOVER_LITERAL ) );
			bAddCallbackByMouseOver = true;
		}
	}
	
	private void addScriptCallBack( ShapedAction sa, StringBuffer sb,
			Action ac, String functionName )
	{
		if ( ac != null
				&& StructureType.SERIES_DATA_POINT.equals( sa.getSource( )
						.getType( ) ) )
		{
			
			
			if ( ac.getType( ).getValue( ) == ActionType.INVOKE_SCRIPT )
			{
				sb.append( wrapJSMethod( functionName, generateJSContent( ac ) ) );
			}
		}
	}
	private String generateJSContent( Action ac )
	{
		if ( ac.getType( ).getValue( ) == ActionType.INVOKE_SCRIPT )
		{
			ScriptValue sv = (ScriptValue) ac.getValue( );
			return sv.getScript( );