Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » BIRT CHART(Mouse over not working for BarSeries)
BIRT CHART [message #902446] Fri, 17 August 2012 15:30 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: BIRT CHART [message #902559 is a reply to message #902446] Sat, 18 August 2012 12:27 Go to previous messageGo to next message
SP Pandey is currently offline SP PandeyFriend
Messages: 4
Registered: August 2012
Junior Member
Help required urgently on this topic....
Re: BIRT CHART [message #902714 is a reply to message #902559] Mon, 20 August 2012 05:27 Go to previous messageGo to next message
SP Pandey is currently offline SP PandeyFriend
Messages: 4
Registered: August 2012
Junior Member
Hi friends.... any clue any idea... most welcome...
plz reply..
Is there any other way to get the answer within less time.
Re: BIRT CHART [message #902860 is a reply to message #902714] Mon, 20 August 2012 18:27 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Do you have a simple project that you can post that shows the issue?
What jars are you including in the build path? Also why are you writing
the image to a file? Why not use:

Rectangle d = this.getClientArea( );
Image imgChart = new Image( this.getDisplay( ), d );
GC gcImage = new GC( imgChart );
idr.setProperty( IDeviceRenderer.GRAPHICS_CONTEXT, gcImage );

Jason

On 8/20/2012 1:27 AM, SP Pandey wrote:
> Hi friends.... any clue any idea... most welcome...
> plz reply..
> Is there any other way to get the answer within less time.
Previous Topic:Change BIRT Source
Next Topic:onFetch local javascript variable
Goto Forum:
  


Current Time: Thu Apr 18 15:23:25 GMT 2024

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

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

Back to the top