Class DrawCommand

java.lang.Object
org.jgroups.demos.DrawCommand
All Implemented Interfaces:
Streamable

public class DrawCommand extends Object implements Streamable
Encapsulates information about a draw command. Used by the Draw and other demos.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final byte
     
    (package private) static final byte
     
    (package private) byte
     
    (package private) int
     
    (package private) int
     
    (package private) int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DrawCommand(byte mode)
     
    DrawCommand(byte mode, int x, int y, int rgb)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
     
    void
    Write the entire state of the current object (including superclasses) to outstream.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • DrawCommand

      public DrawCommand()
    • DrawCommand

      DrawCommand(byte mode)
    • DrawCommand

      DrawCommand(byte mode, int x, int y, int rgb)
  • Method Details

    • writeTo

      public void writeTo(DataOutput out) throws IOException
      Description copied from interface: Streamable
      Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed
      Specified by:
      writeTo in interface Streamable
      Throws:
      IOException
    • readFrom

      public void readFrom(DataInput in) throws IOException
      Description copied from interface: Streamable
      Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
      Specified by:
      readFrom in interface Streamable
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object