|Re: Mouse Over [message #902419 is a reply to message #902382]
||Fri, 17 August 2012 14:12
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
Note that there is a dedicated Eclipse BIRT forum. Likely, you'll get |
more, faster and better help there.
On 8/17/2012 6:02 AM, SP Pandey wrote:
> Hi All ,
> I need some help urgently.
> I am trying to give as much info. regarding the prob. as possible.
> Requirement :
> Display tooltip when cursor goes over bars in the chart ( MouseOver event).
> ENVIRONMENT :
> SWT and BIRT on Eclipse Indigo..Build id: 20110615-0604
> Conventional Strategy:
> The Plugin classes provide methods like setToolTipText ("My Tooltip").
> These methods can be called on the classes to get the tooltip functionality.
> For eg. Canvas, Composite etc.
> CLASS org.eclipse.birt.chart.model.type.BarSeries does not provide any such direct method.
> Alternate approach:
> Attach a trigger (Listeners) to BarSeries :
> Code used:
> Trigger trigger = TriggerImpl.create(TriggerCondition.ONMOUSEOVER_LITERAL,
> ActionImpl.create (
> TooltipValueImpl.create (100, "Boomer")));
> BarSeries bs2 = (BarSeries) BarSeriesImpl.create ();
> bs1.getTriggers ().add (trigger);
> The trigger attached on bar is being overshadowed by the features of ChartCanvas.Thus we do not get the tool tip when the cursor goes over bar.
> ChartCanvas is an implementation of Canvas.It is being used to present the chart as an image.
> It is very urgent as I am through with other implementations, but I am stuck with the mouse over.
> I have attached two important files which I think is sufficient.If anything else is required please do not hesitate to ask for that.
> Many many many thanks in advance....
Powered by FUDForum
. Page generated in 0.03447 seconds