Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Why plot triggers do not work?
Why plot triggers do not work? [message #368305] Tue, 19 May 2009 18:08 Go to next message
Eclipse UserFriend
Originally posted by: elaskavaia.qnx.com

I am trying to add zooming to chart. For that I need mouse-down,
mouse-move, etc
events from Plot block. If I add trigger for plot it does not work at
all...

For example I can modify InteractivityCharts from example adding the
following
at line 478:

cwaBar.getPlot().getTriggers( )
.add( TriggerImpl.create( TriggerCondition.ONMOUSEDOWN_LITERAL,
ActionImpl.create( ActionType.CALL_BACK_LITERAL,
CallBackValueImpl.create( "plot" ) ) ) );

Callback is called on series but not anywhere in the plot area between the
bars :(
Re: Why plot triggers do not work? [message #368308 is a reply to message #368305] Wed, 20 May 2009 14:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: elaskavaia.qnx.com

Ok as I can see it is not implemented.. Only stuff is implemented is
series items, legend items and title area :(
Re: Why plot triggers do not work? [message #368318 is a reply to message #368308] Wed, 20 May 2009 17:41 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Alena,

You can do a somewhat of a hack (BTW I am working on a zoom example as
well) to add the onmousedown/onmousemove event.
Add a script to a text element before or after the chart.

<script>
function chartclick(evt){
document.onmousemove = onmousemovefunc;
document.onmousedown = onmousedownfunc;
}
function onmousemove(evt){
.....
}
</script>

You will have to preview in HTML or the webviewer to get valid values
for evt though.

Also SVG supports mousemove, down etc. The image types do not. The
above hack is for image types.

Jason

Alena Laskavaia wrote:
> Ok as I can see it is not implemented.. Only stuff is implemented is
> series items, legend items and title area :(
>
Previous Topic:UILocale in chart examples
Next Topic:Use of reportItemFigureUI
Goto Forum:
  


Current Time: Sat Apr 27 04:23:53 GMT 2024

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

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

Back to the top