Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 131821 - SWT Pie Chart: Can not get pie slice information on mouse click
Summary: SWT Pie Chart: Can not get pie slice information on mouse click
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 2.1.0 RC0   Edit
Assignee: Zhiqiang Qian CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 103549
  Show dependency tree
 
Reported: 2006-03-14 16:51 EST by Bianca Jiang CLA
Modified: 2006-03-19 21:34 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bianca Jiang CLA 2006-03-14 16:51:21 EST
Registered a CALLBACK with Mouse click trigger like this:

Action action = ActionImpl.create(ActionType.CALL_BACK_LITERAL, CallBackValueImpl.create(VerdictSummaryChart.class.getName()));
Trigger tg = TriggerImpl.create(TriggerCondition.ONCLICK_LITERAL, action);
sePie.getTriggers().add(tg);

deviceRenderer.setProperty(IDeviceRenderer.UPDATE_NOTIFIER, this);

When the callback(Object event, Object source, CallBackValue value) of the update notifier class is invoked, here are the variable values from the debugger:
source= StructureSource  (id=908)
	source= PieSeriesImpl  (id=1080)
	type= StructureType  (id=1081)
	type= "series"
value= CallBackValueImpl  (id=909)
	eAdapters= null
	eContainer= ActionImpl  (id=907)
	eContainerFeatureID= -2
	eFlags= 1
	eProperties= null
	identifier= "org.eclipse.hyades.test.ui.forms.base.VerdictSummaryChart"

So all I can get from the StructureSource is the PieSeries which does not tell me which slice of the pie was clicked on.  

There are project features that depends on getting pie slice mouse click and can not ship without this with eclipse 3.2.
Comment 1 Zhiqiang Qian CLA 2006-03-14 22:28:13 EST
Now pass DataPointHints object as the source object, and also added index property in DataPointHints.
Comment 2 Zhiqiang Qian CLA 2006-03-16 05:39:09 EST
fixed the SWT arc region type issue.
Comment 3 Zhiqiang Qian CLA 2006-03-19 21:34:23 EST
fixed.