org.jgroups.demos

Class Draw

public class Draw extends Object implements ActionListener, ChannelListener

Shared whiteboard, each new instance joins the same group. Each instance chooses a random color, mouse moves are broadcast to all group members, which then apply them to their canvas

Author: Bela Ban, Oct 17 2001

Constructor Summary
Draw(String props, boolean debug, boolean cummulative, boolean no_channel, boolean jmx)
Method Summary
voidactionPerformed(ActionEvent e)
voidchannelClosed(Channel channel)
voidchannelConnected(Channel channel)
voidchannelDisconnected(Channel channel)
voidchannelReconnected(Address addr)
voidchannelShunned()
voidclearPanel()
StringgetGroupName()
voidgo()
static voidmain(String[] args)
voidmainLoop()
voidsendClearPanelMsg()
voidsetGroupName(String groupname)

Constructor Detail

Draw

public Draw(String props, boolean debug, boolean cummulative, boolean no_channel, boolean jmx)

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

channelClosed

public void channelClosed(Channel channel)

channelConnected

public void channelConnected(Channel channel)

channelDisconnected

public void channelDisconnected(Channel channel)

channelReconnected

public void channelReconnected(Address addr)

channelShunned

public void channelShunned()

clearPanel

public void clearPanel()

getGroupName

public String getGroupName()

go

public void go()

main

public static void main(String[] args)

mainLoop

public void mainLoop()

sendClearPanelMsg

public void sendClearPanelMsg()

setGroupName

public void setGroupName(String groupname)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.