|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectThincMsg
ThincCMsg
ThincCMsgResize
ThincCMsgResizeEvent
public final class ThincCMsgResizeEvent
ThincCMsgEventMouseButton
handles resized event from canvas.
it simply implements HierarchyBoundsListener
interfaces provided from java, and it is added
as a HierarchyBoundsListener on ThincClientCanvas.
ThincCMsgResize
Field Summary | |
---|---|
private ThincFrame |
frame
|
private int |
height
|
static int |
MESSAGE_SIZE
|
static int |
MESSAGE_TYPE
|
private int |
width
|
Fields inherited from class ThincMsg |
---|
canvas, handler |
Constructor Summary | |
---|---|
ThincCMsgResizeEvent(ThincMsgHandler h,
ThincClientCanvas c,
ThincFrame f)
creates ThincCMsgResizeEvent object. |
Method Summary | |
---|---|
void |
ancestorMoved(java.awt.event.HierarchyEvent arg0)
|
void |
ancestorResized(java.awt.event.HierarchyEvent arg0)
ancestorResized() implemented method from HierarchyBoundsListener interface. |
byte |
getMsgType()
getMsgType() returns a type of the message. |
short |
messageSize()
messageSize() returns the total messageSize to send. |
void |
process()
process() Set resized width and height into ThincSMsgFlagResize class and invokes send method in ThincMsgHandler. |
void |
putMessage(java.nio.ByteBuffer b)
putMessage() simply puts resized width and height. |
Methods inherited from class ThincCMsg |
---|
getFlag, headerSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MESSAGE_TYPE
public static final int MESSAGE_SIZE
private int width
private int height
private ThincFrame frame
Constructor Detail |
---|
public ThincCMsgResizeEvent(ThincMsgHandler h, ThincClientCanvas c, ThincFrame f)
h
- ThincMsgHandler
to handle the messagec
- ThincClientCanvas
to get the informationMethod Detail |
---|
public byte getMsgType()
ThincCMsg
getMsgType
in class ThincCMsg
public void putMessage(java.nio.ByteBuffer b)
putMessage
in class ThincCMsg
b
- ByteBuffer object to sendpublic short messageSize()
ThincCMsg
messageSize
in class ThincCMsg
public void process() throws ThincException
process
in class ThincMsg
ThincException
public void ancestorResized(java.awt.event.HierarchyEvent arg0)
ancestorResized
in interface java.awt.event.HierarchyBoundsListener
public void ancestorMoved(java.awt.event.HierarchyEvent arg0)
ancestorMoved
in interface java.awt.event.HierarchyBoundsListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |