Package org.jgroups.demos
Class DrawRepl
java.lang.Object
org.jgroups.demos.DrawRepl
- All Implemented Interfaces:
ActionListener,MouseMotionListener,WindowListener,Runnable,EventListener
public class DrawRepl
extends Object
implements MouseMotionListener, WindowListener, ActionListener, Runnable
Replicates the whiteboard demo by intercepting central AWT event queue and mcasting events to
all members. Not very useful in all cases, e.g. when the "Leave" button is pressed, and this event
is broadcast to all members, all members will leave ! This demo would clearly benefit from more work !
NOT SUPPORTED !
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfindComponent(Container parent, String comp_name) voidgo()static voidvoidvoidvoidprocessEvent(String comp_name, AWTEvent evt) voidrun()voidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
DrawRepl
public DrawRepl()
-
-
Method Details
-
main
-
findComponent
-
processEvent
-
run
public void run() -
go
public void go() -
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
clearPanel
public void clearPanel() -
windowActivated
- Specified by:
windowActivatedin interfaceWindowListener
-
windowClosed
- Specified by:
windowClosedin interfaceWindowListener
-
windowClosing
- Specified by:
windowClosingin interfaceWindowListener
-
windowDeactivated
- Specified by:
windowDeactivatedin interfaceWindowListener
-
windowDeiconified
- Specified by:
windowDeiconifiedin interfaceWindowListener
-
windowIconified
- Specified by:
windowIconifiedin interfaceWindowListener
-
windowOpened
- Specified by:
windowOpenedin interfaceWindowListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-