Class ThincSMsgFlagResize

java.lang.Object
  extended by ThincSMsgFlag
      extended by ThincSMsgFlagResize
All Implemented Interfaces:
ThincMsgFlag

public final class ThincSMsgFlagResize
extends ThincSMsgFlag

class for resize flag message.

Author:
Young Jin Yoon
See Also:
ThincSMsgFlag, ThincSMsgFBRawUpdate

Field Summary
private  ThincClientCanvas canvas
           
static int DATA_MESSAGE_SIZE
           
private static float fb_inverseRateHeight
           
private static float fb_inverseRateWidth
           
private static float fb_rateHeight
           
private static float fb_rateWidth
           
private  ThincMsgHandler handler
           
private static short height
           
private static boolean isProceed
           
private static boolean isResized
           
private static short nHeight
           
private static short nWidth
           
private static short width
           
 
Constructor Summary
ThincSMsgFlagResize(ThincMsgHandler h, ThincClientCanvas c)
          creates ThincSMsgFlagResize object.
 
Method Summary
static short getOriginalX(short x)
           
static short getOriginalY(short y)
           
static double getRateHeight()
           
static double getRateWidth()
           
static short getResizedHeight(short y)
           
static short getResizedWidth(short x)
           
static short getResizedX(short x)
           
static short getResizedY(short y)
           
 boolean isProceed()
           
 void isProceed(boolean value)
           
static boolean isResized()
           
 void process(java.awt.Rectangle r)
          process() receives resized flag message from the network. if hasInformation is true, it compares the resized flag message with resized height and width of frame buffer. if it is false, just discard resized flag message
static void setResized(int oldWidth, int oldHeight, int newWidth, int newHeight)
          setResized() set resized width and height with original width and height.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_MESSAGE_SIZE

public static final int DATA_MESSAGE_SIZE
See Also:
Constant Field Values

handler

private ThincMsgHandler handler

canvas

private ThincClientCanvas canvas

width

private static short width

nWidth

private static short nWidth

height

private static short height

nHeight

private static short nHeight

fb_rateWidth

private static float fb_rateWidth

fb_rateHeight

private static float fb_rateHeight

fb_inverseRateWidth

private static float fb_inverseRateWidth

fb_inverseRateHeight

private static float fb_inverseRateHeight

isResized

private static boolean isResized

isProceed

private static boolean isProceed
Constructor Detail

ThincSMsgFlagResize

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

Parameters:
h - ThincMsgHandler to handle the message
Method Detail

setResized

public static void setResized(int oldWidth,
                              int oldHeight,
                              int newWidth,
                              int newHeight)
setResized() set resized width and height with original width and height.

Parameters:
oldWidth - original width
oldHeight - original height
newWidth - resized width
newHeight - resized height

process

public void process(java.awt.Rectangle r)
             throws ThincException
process() receives resized flag message from the network. if hasInformation is true, it compares the resized flag message with resized height and width of frame buffer. if it is false, just discard resized flag message

Parameters:
r - Rectangle which will be updated (in ThincSMsgRawUpdate only). null if not required.
Throws:
ThincException

isProceed

public boolean isProceed()

isProceed

public void isProceed(boolean value)

isResized

public static boolean isResized()

getResizedX

public static short getResizedX(short x)

getResizedY

public static short getResizedY(short y)

getResizedWidth

public static short getResizedWidth(short x)

getResizedHeight

public static short getResizedHeight(short y)

getOriginalX

public static short getOriginalX(short x)

getOriginalY

public static short getOriginalY(short y)

getRateHeight

public static double getRateHeight()

getRateWidth

public static double getRateWidth()