Bug 119754 ClassCastException when trying to change the mouse over activity on the legend item
I want to highlight a series when hovering over the legend item. I accomplish this by doing the following on the chart model: chart.getLegend().getTriggers( ) .add( TriggerImpl.create( TriggerCondition.ONMOUSEOVER_LITERAL, ActionImpl.create( ActionType.HIGHLIGHT_LITERAL, SeriesValueImpl.create( "not-used" ) ) ) ); However I get the following exception for the SWT and Swing renderers. I suspect that both renderers are expecting tool tip action. java.lang.ClassCastException at org.eclipse.birt.chart.device.swt.SwtEventHandler.showTooltip(SwtEventHandler.java:701) at org.eclipse.birt.chart.device.swt.SwtEventHandler.mouseMove(SwtEventHandler.java:621) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:145) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingRendererImpl.java
{
				throw new ChartException( ChartDeviceExtensionPlugin.ID,
						ChartException.RENDERING,
						muex );
			}
			final Shape shClip = _g2d.getClip( );
			Area ar1 = new Area( shClip );
			Area ar2 = new Area( r2d );
			ar2.intersect( ar1 );
			_g2d.setClip( ar2 );
			final Size szImage = _ids.getSize( img );
			int iXRepeat = (int) ( Math.ceil( r2d.width / szImage.getWidth( ) ) );
			int iYRepeat = (int) ( Math.ceil( r2d.height / szImage.getHeight( ) ) );
			ImageObserver io = (ImageObserver) _ids.getObserver( );
			for ( int i = 0; i < iXRepeat; i++ )
			{
				for ( int j = 0; j < iYRepeat; j++ )
				{
					_g2d.drawImage( img,
							(int) ( r2d.x + i * szImage.getWidth( ) ),
							(int) ( r2d.y + j * szImage.getHeight( ) ),
							io );
				}
			}
			
			_g2d.setClip( shClip ); 
		}
	}
	/**
	 * In SWING, polygons are defined with 'int' co-ordinates. There is no