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/SwingEventHandler.java
MouseMotionListener,
		KeyListener
{
	private static ILogger logger = Logger.getLogger( "org.eclipse.birt.chart.device.extension/swing" ); 
	private static final BasicStroke bs = new BasicStroke( 5,
			BasicStroke.CAP_ROUND,
			BasicStroke.JOIN_ROUND,
			0,
			new float[]{
					6.0f, 4.0f
			},
			0 );
	private ShapedAction saTooltip = null;
	private ShapedAction saHighlighted = null;
	private final LinkedHashMap lhmAllTriggers;
	private final IUpdateNotifier iun;
	private final Locale lcl;
	/**
	 * The constructor.
	 * 
	 * @param _lhmAllTriggers
	 * @param _jc
	 * @param _lcl
	 */
	SwingEventHandler( LinkedHashMap _lhmAllTriggers, IUpdateNotifier _jc,
			Locale _lcl )
	{
		lhmAllTriggers = _lhmAllTriggers;
		iun = _jc;
		lcl = _lcl;