Class ThincCMsgResizeUpdate

java.lang.Object
  extended by ThincMsg
      extended by ThincCMsg
          extended by ThincCMsgResize
              extended by ThincCMsgResizeUpdate

public final class ThincCMsgResizeUpdate
extends ThincCMsgResize

ThincCMsgEventMouseButton is for sending the message that the region in frame buffer should be refreshed. In my implementation, it simply request the entire resized frame buffer.

Author:
Young Jin Yoon
See Also:
ThincCMsgResize

Field Summary
static int DATA_SIZE
           
private  int height
           
static int MESSAGE_SIZE
           
static int MESSAGE_TYPE
           
private  int width
           
private  int x
           
private  int y
           
 
Fields inherited from class ThincMsg
canvas, handler
 
Constructor Summary
ThincCMsgResizeUpdate(ThincMsgHandler h, ThincClientCanvas c, int x, int y, int width, int height)
          creates ThincCMsgEventMouseButton object.
 
Method Summary
 byte getMsgType()
          getMsgType() returns a type of the message.
 short headerSize()
          headerSize() returns the header size of the client message. different from messageSize() method, it only returns the header of total messages.
 short messageSize()
          messageSize() returns the total messageSize to send.
 void process()
          process() is general processing method for each thinc messages.
 void putMessage(java.nio.ByteBuffer b)
          putMessage() puts the number of region as 1. then 0,0,its width,its height to refresh entire screen.
 
Methods inherited from class ThincCMsg
getFlag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_TYPE

public static final int MESSAGE_TYPE
See Also:
Constant Field Values

MESSAGE_SIZE

public static final int MESSAGE_SIZE
See Also:
Constant Field Values

DATA_SIZE

public static final int DATA_SIZE
See Also:
Constant Field Values

x

private int x

y

private int y

width

private int width

height

private int height
Constructor Detail

ThincCMsgResizeUpdate

public ThincCMsgResizeUpdate(ThincMsgHandler h,
                             ThincClientCanvas c,
                             int x,
                             int y,
                             int width,
                             int height)
creates ThincCMsgEventMouseButton object.

Parameters:
h - ThincMsgHandler to handle the message
c - ThincClientCanvas to get the information
Method Detail

getMsgType

public byte getMsgType()
Description copied from class: ThincCMsg
getMsgType() returns a type of the message.

Specified by:
getMsgType in class ThincCMsg
Returns:
type of message

putMessage

public void putMessage(java.nio.ByteBuffer b)
putMessage() puts the number of region as 1. then 0,0,its width,its height to refresh entire screen.

Specified by:
putMessage in class ThincCMsg
Parameters:
b - ByteBuffer object to send
See Also:
ThincCMsg.putMessage()

messageSize

public short messageSize()
Description copied from class: ThincCMsg
messageSize() returns the total messageSize to send.

Specified by:
messageSize in class ThincCMsg
Returns:
total messageSize refered from ThincMsgHandler class

headerSize

public short headerSize()
Description copied from class: ThincCMsg
headerSize() returns the header size of the client message. different from messageSize() method, it only returns the header of total messages. If you want to send more than thinc header to the server, override this method and put the proper header size onto overriden method.

Overrides:
headerSize in class ThincCMsg
Returns:
header size of message
See Also:
ThincCMsgInitRequestVideoClientFormat

process

public void process()
             throws ThincException
Description copied from class: ThincMsg
process() is general processing method for each thinc messages. Most of client messages, it simply invokes send() methods in ThincMsgHandler object to send the client messages. In server messages, it interacts with ThincClientCanvas in this method.

Specified by:
process in class ThincMsg
Throws:
ThincException