Class ThincSMsgCursorMove

java.lang.Object
  extended by ThincMsg
      extended by ThincSMsg
          extended by ThincSMsgCursor
              extended by ThincSMsgCursorMove

public final class ThincSMsgCursorMove
extends ThincSMsgCursor

handles move the cursor to new coordination. it comes with new x and y coordinates. now it only receive and parse the message but not moving cursor around. To move the cursor, delete '//' in the last line of this class, which actually move the cursor.

Author:
Young Jin Yoon
See Also:
ThincSMsgCursor

Field Summary
static int MESSAGE_SIZE
           
static int MESSAGE_TYPE
           
 
Fields inherited from class ThincMsg
canvas, handler
 
Constructor Summary
ThincSMsgCursorMove(ThincMsgHandler h, ThincClientCanvas c)
          creates ThincSMsgCursorMove object.
 
Method Summary
 void process()
          process() get the new coordination for cursor and change the position using moveThincCursor() method in ThincClientCanvas class.
 
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
Constructor Detail

ThincSMsgCursorMove

public ThincSMsgCursorMove(ThincMsgHandler h,
                           ThincClientCanvas c)
creates ThincSMsgCursorMove object.

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

process

public void process()
             throws ThincException
process() get the new coordination for cursor and change the position using moveThincCursor() method in ThincClientCanvas class.

Specified by:
process in class ThincMsg
Throws:
ThincException