Experimental Physics and Industrial Control System
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
<2019>
2020
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
<2019>
2020
2021
2022
2023
2024