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.engine/src/org/eclipse/birt/chart/device/IDeviceRenderer.java
* used for event detection)
	 */
	public static final String UPDATE_NOTIFIER = "device.component"; 
	/**
	 * A property name that identifies the expected bounds of the chart being
	 * generated. This notification is sent out to provide the renderer with a
	 * hint about the location and size of the output being generated typically
	 * used with an Image file output. This is internally set by the
	 * 'Generator'.
	 */
	public static final String EXPECTED_BOUNDS = "device.bounds"; 
	/**
	 * A property name that identifies an instance of a cached java.awt.Image
	 * that may be passed in for potential reuse. In general, the image device
	 * renderers are configured to create a new image instance for every chart
	 * image generation request if a cached image is not specified. Ensure that
	 * the image passed in externally uses the correct size in pixels equivalent
	 * to the expected bounds specified in points.
	 */
	public static final String CACHED_IMAGE = "cached.image"; 
	/**
	 * A property name that indicates if the output associated with the device
	 * should be compressed ('true') or written out as is uncompressed
	 * ('false'). Device renderers should interpret a missing undefined value as
	 * uncompressed.
	 */
	public static final String COMPRESSED_OUTPUT = "output.compressed"; 
	/**
	 * Device-specific write-only properties that may be set for each device
	 * renderer