urv.app.samples
Class DrawCommand

java.lang.Object
  extended by urv.app.samples.DrawCommand
All Implemented Interfaces:
org.jgroups.util.Streamable

public class DrawCommand
extends java.lang.Object
implements org.jgroups.util.Streamable

Encapsulates information about a draw command. Used by the Draw and other demos.


Field Summary
(package private)  int b
           
(package private) static byte CLEAR
           
(package private) static byte DRAW
           
(package private)  int g
           
(package private)  byte mode
           
(package private)  int r
           
(package private)  int x
           
(package private)  int y
           
 
Constructor Summary
DrawCommand()
           
DrawCommand(byte mode)
           
DrawCommand(byte mode, int x, int y, int r, int g, int b)
           
 
Method Summary
 void readFrom(java.io.DataInputStream in)
           
 java.lang.String toString()
           
 void writeTo(java.io.DataOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DRAW

static final byte DRAW
See Also:
Constant Field Values

CLEAR

static final byte CLEAR
See Also:
Constant Field Values

mode

byte mode

x

int x

y

int y

r

int r

g

int g

b

int b
Constructor Detail

DrawCommand

public DrawCommand()

DrawCommand

DrawCommand(byte mode)

DrawCommand

DrawCommand(byte mode,
            int x,
            int y,
            int r,
            int g,
            int b)
Method Detail

writeTo

public void writeTo(java.io.DataOutputStream out)
             throws java.io.IOException
Specified by:
writeTo in interface org.jgroups.util.Streamable
Throws:
java.io.IOException

readFrom

public void readFrom(java.io.DataInputStream in)
              throws java.io.IOException,
                     java.lang.IllegalAccessException,
                     java.lang.InstantiationException
Specified by:
readFrom in interface org.jgroups.util.Streamable
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object