Argonne National Laboratory

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  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 
<== Date ==> <== Thread ==>

Subject: Re: MouseListener and MouseEvent on Intensity Graph in CSS
From: "Kasemir, Kay via Tech-talk" <tech-talk@aps.anl.gov>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>, "Apeksha Chipade - UKRI STFC" <apeksha.chipade@stfc.ac.uk>
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 
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 
ANJ, 11 Sep 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·