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
clipping ) );
			}
		}
		else if ( pre instanceof RectangleRenderEvent )
		{
			final Bounds bo = ( (RectangleRenderEvent) pre ).getBounds( );
			final Location[] loa = new Location[4];
			loa[0] = LocationImpl.create( bo.getLeft( ), bo.getTop( ) );
			loa[1] = LocationImpl.create( bo.getLeft( ), bo.getTop( )
					+ bo.getHeight( ) );
			loa[2] = LocationImpl.create( bo.getLeft( ) + bo.getWidth( ),
					bo.getTop( ) + bo.getHeight( ) );
			loa[3] = LocationImpl.create( bo.getLeft( ) + bo.getWidth( ),
					bo.getTop( ) );
			for ( int i = 0; i < tga.length; i++ )
			{
				tc = tga[i].getCondition( );
				al = (ArrayList) _lhmAllTriggers.get( tc );
				if ( al == null )
				{
					al = new ArrayList( 4 ); 
					_lhmAllTriggers.put( tc, al );
				}
				al.add( new ShapedAction( iev.getSource( ),
						loa,
						tga[i].getAction( ),
						clipping ) );
			}
		}
		else if ( pre instanceof OvalRenderEvent )