org.objectweb.tribe.demos.draw
Class WhiteBoardCommand

java.lang.Object
  extended byorg.objectweb.tribe.demos.draw.WhiteBoardCommand
All Implemented Interfaces:
java.io.Serializable

public class WhiteBoardCommand
extends java.lang.Object
implements java.io.Serializable

This class defines a WhiteBoardCommand. It is used either for drawing a point or clearing the display. One should have used 2 separate classes since it is useless to transport point information just for a clear command, but I have just reused the code from the JGroups demo.

Version:
1.0
Author:
Bela Ban, 2001, Emmanuel Cecchet
See Also:
Serialized Form

Field Summary
(package private)  int b
           
(package private) static int CLEAR
           
(package private) static int DRAW
           
(package private)  int g
           
(package private)  int mode
           
(package private)  int r
           
(package private)  int x
           
(package private)  int y
           
 
Constructor Summary
(package private) WhiteBoardCommand()
          Creates a new WhiteBoardCommand object for clearing the display.
(package private) WhiteBoardCommand(int x, int y, int r, int g, int b)
          Creates a new WhiteBoardCommand object to draw a point.
 
Method Summary
(package private)  WhiteBoardCommand Copy()
          Copy this object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DRAW

static final int DRAW
See Also:
Constant Field Values

CLEAR

static final int CLEAR
See Also:
Constant Field Values

mode

int mode

x

int x

y

int y

r

int r

g

int g

b

int b
Constructor Detail

WhiteBoardCommand

WhiteBoardCommand()
Creates a new WhiteBoardCommand object for clearing the display.


WhiteBoardCommand

WhiteBoardCommand(int x,
                  int y,
                  int r,
                  int g,
                  int b)
Creates a new WhiteBoardCommand object to draw a point.

Parameters:
x - x coordinate of the point
y - y coordinate of the point
r - red color
g - green color
b - blue color
Method Detail

Copy

WhiteBoardCommand Copy()
Copy this object.

Returns:
A new instance of this object.

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2004 - ObjectWeb Consortium - All Rights Reserved.