org.objectweb.tribe.demos.draw
Class WhiteBoardCommand
java.lang.Object
org.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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 pointy
- y coordinate of the pointr
- red colorg
- green colorb
- blue color
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.