NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Bingo! Thanks Bill!! -kevin. Bill Hibbard wrote:
Hi Kevin, If I understand what you want, try this: Define a subclass of the direct manipulation DataRenderer that you are using, that includes an implementation of the method: public void release_direct() In this implementation, trigger a CellImpl that does your "processB". The release_direct() method is called when the mouse button is released. Good luck, Bill On Thu, 21 Jul 2005, Kevin Manross wrote:I have a situation where I want to do some processing related to a DataReferenceImpl. Currently I am doing this in the doAction() method of a CellImpl to which the DataReferenceImpl is related to. The processing takes quite a while to do and bogs down the display and the behavior of the CellImpl. Therefore, I would like to do the processing when the CellImpl stops (i.e., when the mouse click is released or stopped dragging from the CellImpl/DataReferenceImpl.) Cuurently: pt_ref = new DataReferenceImpl("pt_ref"); CellImpl cell = new CellImpl() { public void doAction() { "processA" "processB" } }; but "processB" takes a while to run, so I want to run "processB" once the mouse has stopped dragging, or the click is released. I was trying to use the ThingChangedListener and ThingChangedEvent, but could not figure a way to do so. I'd appreciate anyone's input on this. Thanks!! -kevin.
-- +------------------------------------------------------------+ Kevin L. Manross [KD5MYD] <>< (405)-366-0557 CIMMS Research Associate kevin.manross@xxxxxxxx [NSSL-WRDD/SWATN] http://www.cimms.ou.edu/~kmanross "My opinions are my own and not representative of CIMMS, NSSL, NOAA or any affiliates" +------------------------------------------------------------+
visad
archives: