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.
Hi!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: