The way I do this is:

a) define a Class that extends ImageWindow
b) define methods such as “SetZoom(…)”, and “SetCursor”
c) define methods such as “LinkToWindow(MyImageWindow)
d) In the code that creates each such window, use “LinkToWindow” to tell all 
the windows about each other
e) in the MyImageWindow class, catch all of the changes you want to handle, and 
notify  all of the windows you are linked to.  BEWARE OF LOOPS.

If there is a better way to do this kind of thing, I’m all ears - but this has 
worked for me.

Note: I do this for a slightly different reason, but the general idea is to:

a) create an extension class
b) link the windows
c) modify the extension class to accept the links, capture the changes, and 
communicate them.

--
Kenneth Sloan
[email protected]
Vision is the art of seeing what is invisible to others.


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

Reply via email to