gnu.rfb.server
Class VNCQueue

java.lang.Object
  extended by gnu.rfb.server.VNCQueue

public class VNCQueue
extends java.lang.Object

A queue for VNC update messages.

Author:
Tal Liron

Constructor Summary
VNCQueue(RFBClients clients)
           
 
Method Summary
 void addRectangle(int x, int y, int w, int h, PixelsOwner pixelsOwner)
           
 void addRectangle(PixelsOwner pixelsOwner)
           
 void addRectangle(Rectangle addition, PixelsOwner pixelsOwner)
           
 void frameBufferUpdate(RFBClient client, boolean incremental, int x, int y, int w, int h)
           
 Rectangle[] pop(RFBClient client, int x, int y, int w, int h)
           
 Rectangle[] pop(RFBClient client, Rectangle clip)
           
 Rect[] popEncoded(RFBClient client, int x, int y, int w, int h, int[] pixels, int scanline)
           
 Rect[] popEncoded(RFBClient client, Rectangle clip, int[] pixels, int scanline)
           
 void takeSnapshot(PixelsOwner p)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VNCQueue

public VNCQueue(RFBClients clients)
Parameters:
clients -
Method Detail

frameBufferUpdate

public void frameBufferUpdate(RFBClient client,
                              boolean incremental,
                              int x,
                              int y,
                              int w,
                              int h)
                       throws java.io.IOException
Parameters:
client -
incremental -
x -
y -
w -
h -
Throws:
java.io.IOException

popEncoded

public Rect[] popEncoded(RFBClient client,
                         int x,
                         int y,
                         int w,
                         int h,
                         int[] pixels,
                         int scanline)
                  throws java.io.IOException
Parameters:
client -
x -
y -
w -
h -
pixels -
scanline -
Returns:
Throws:
java.io.IOException

popEncoded

public Rect[] popEncoded(RFBClient client,
                         Rectangle clip,
                         int[] pixels,
                         int scanline)
                  throws java.io.IOException
Throws:
java.io.IOException

addRectangle

public void addRectangle(int x,
                         int y,
                         int w,
                         int h,
                         PixelsOwner pixelsOwner)
Parameters:
x -
y -
w -
h -
pixelsOwner -

addRectangle

public void addRectangle(Rectangle addition,
                         PixelsOwner pixelsOwner)
Parameters:
addition -
pixelsOwner -

addRectangle

public void addRectangle(PixelsOwner pixelsOwner)
Parameters:
pixelsOwner -

pop

public Rectangle[] pop(RFBClient client,
                       int x,
                       int y,
                       int w,
                       int h)
Parameters:
client -
x -
y -
w -
h -
Returns:

pop

public Rectangle[] pop(RFBClient client,
                       Rectangle clip)
Parameters:
client -
clip -
Returns:

takeSnapshot

public void takeSnapshot(PixelsOwner p)
Parameters:
p -