org.jgroups.demos

Class DrawRepl

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
DrawRepl()
Method Summary
voidactionPerformed(ActionEvent e)
voidclearPanel()
ComponentfindComponent(Container parent, String comp_name)
voidgo()
static voidmain(String[] args)
voidmouseDragged(MouseEvent e)
voidmouseMoved(MouseEvent e)
voidprocessEvent(String comp_name, AWTEvent evt)
voidrun()
voidwindowActivated(WindowEvent e)
voidwindowClosed(WindowEvent e)
voidwindowClosing(WindowEvent e)
voidwindowDeactivated(WindowEvent e)
voidwindowDeiconified(WindowEvent e)
voidwindowIconified(WindowEvent e)
voidwindowOpened(WindowEvent e)

Constructor Detail

DrawRepl

public DrawRepl()

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

clearPanel

public void clearPanel()

findComponent

public Component findComponent(Container parent, String comp_name)

go

public void go()

main

public static void main(String[] args)

mouseDragged

public void mouseDragged(MouseEvent e)

mouseMoved

public void mouseMoved(MouseEvent e)

processEvent

public void processEvent(String comp_name, AWTEvent evt)

run

public void run()

windowActivated

public void windowActivated(WindowEvent e)

windowClosed

public void windowClosed(WindowEvent e)

windowClosing

public void windowClosing(WindowEvent e)

windowDeactivated

public void windowDeactivated(WindowEvent e)

windowDeiconified

public void windowDeiconified(WindowEvent e)

windowIconified

public void windowIconified(WindowEvent e)

windowOpened

public void windowOpened(WindowEvent e)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.