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 TypeMethodDescriptionvoid
void
findComponent
(Container parent, String comp_name) void
go()
static void
void
void
void
processEvent
(String comp_name, AWTEvent evt) void
run()
void
void
void
void
void
void
void
-
Constructor Details
-
DrawRepl
public DrawRepl()
-
-
Method Details
-
main
-
findComponent
-
processEvent
-
run
public void run() -
go
public void go() -
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
clearPanel
public void clearPanel() -
windowActivated
- Specified by:
windowActivated
in interfaceWindowListener
-
windowClosed
- Specified by:
windowClosed
in interfaceWindowListener
-
windowClosing
- Specified by:
windowClosing
in interfaceWindowListener
-
windowDeactivated
- Specified by:
windowDeactivated
in interfaceWindowListener
-
windowDeiconified
- Specified by:
windowDeiconified
in interfaceWindowListener
-
windowIconified
- Specified by:
windowIconified
in interfaceWindowListener
-
windowOpened
- Specified by:
windowOpened
in interfaceWindowListener
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-