Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Mouse Over(Mouse over not working for BarSeries)
Mouse Over [message #902382] Fri, 17 August 2012 12:02 Go to next message
SP Pandey is currently offline SP PandeyFriend
Messages: 4
Registered: August 2012
Junior Member
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.

Challenge:
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 (
ActionType.SHOW_TOOLTIP_LITERAL,
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....
Re: Mouse Over [message #902419 is a reply to message #902382] Fri, 17 August 2012 14:12 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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.
>
> Challenge:
> 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 (
> ActionType.SHOW_TOOLTIP_LITERAL,
> 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....
>
Previous Topic:How to change the forum theme?
Next Topic:Explorer shows all files gray except one
Goto Forum:
  


Current Time: Fri Apr 19 07:28:06 GMT 2024

Powered by FUDForum. Page generated in 0.03352 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top