Package org.jgroups.demos
Class DrawCommand
java.lang.Object
org.jgroups.demos.DrawCommand
- All Implemented Interfaces:
Streamable
Encapsulates information about a draw command.
Used by the
Draw and other demos.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedtoString()voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
DRAW
static final byte DRAW- See Also:
-
CLEAR
static final byte CLEAR- See Also:
-
mode
byte mode -
x
int x -
y
int y -
rgb
int rgb
-
-
Constructor Details
-
DrawCommand
public DrawCommand() -
DrawCommand
DrawCommand(byte mode) -
DrawCommand
DrawCommand(byte mode, int x, int y, int rgb)
-
-
Method Details
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOException
-
toString
-