EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: MouseListener and MouseEvent on Intensity Graph in CSS
From: "Kasemir, Kay via Tech-talk" <[email protected]>
To: "[email protected]" <[email protected]>, "Apeksha Chipade - UKRI STFC" <[email protected]>
Date: Wed, 11 Sep 2019 16:00:15 +0000
Hi:

I don't see anything in particular wrong with your code to add a mouse click listener, but I think it doesn't work because the widget itself, specifically the IntensityGraphFigure, already has a mouse listener attached which ends in "event.consume()", so your listener no longer gets the events. The widget does this because it's using the mouse events to support zooming and moving the ROIs.

One "fix" would be an update to the widget's IPixelInfoProvider to have it not only receive the coordinates but also the mouse button states.
But that would still leave you scripts to handle the cursor position. In comparison, the corresponding Image widget in the Display Builder directly supports sending the cursor position, either on click or with each move, to X/Y PVs or to a PVAccess table, so you could try to add similar features to the BOY Intensity Graph.

Thanks,
Kay

References:
MouseListener and MouseEvent on Intensity Graph in CSS Apeksha Chipade - UKRI STFC via Tech-talk

Navigate by Date:
Prev: MouseListener and MouseEvent on Intensity Graph in CSS Apeksha Chipade - UKRI STFC via Tech-talk
Next: CSS jython setvalue behaviour Pilar via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: MouseListener and MouseEvent on Intensity Graph in CSS Apeksha Chipade - UKRI STFC via Tech-talk
Next: CSS jython setvalue behaviour Pilar via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024