Class SyncWindows

All Implemented Interfaces:
CommandListener, ImageListener, PlugIn, ActionListener, FocusListener, ItemListener, MouseListener, MouseMotionListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class SyncWindows
extends PlugInFrame
implements ActionListener, MouseMotionListener, MouseListener, ItemListener, ImageListener, CommandListener
This class "synchronizes" mouse input in multiple windows. Once several windows are synchronized, mouse events in any one of the synchronized windows are propagated to the others. Note, the notion of synchronization use by the SyncWindows class here (i.e. multiple windows that all get the same mouse input) is somewhat different than the use of the synchronize keyword in the Java language. (In Java, synchronize has to do w/ critical section access by multiple threads.)

Optionally passes on change of z-slice of a stack to other stacks; Optionally translates positions to different windows via offscreen coordinates, i.e. correctly translates coordinates to windows with a different zoom; Updates the list of windows by click of a button;

Author:
Patrick Kelly ; Improved GUI, support of image coordinates and z-slices by Joachim Walter
See Also:
Serialized Form