gnu.vnc.pixels
Class VNCPixels
java.lang.Object
|
+--gnu.vnc.pixels.VNCPixels
- All Implemented Interfaces:
- PixelsOwner, RFBServer
- public class VNCPixels
- extends Object
- implements RFBServer, PixelsOwner
A raw pixel raster supporting multiple RFB clients.
Constructor Summary |
VNCPixels(String name,
int width,
int height)
|
VNCPixels(String name,
int width,
int height,
int redMask,
int greenMask,
int blueMask)
|
Method Summary |
void |
addClient(RFBClient client)
|
boolean |
allowShared()
|
void |
clientCutText(RFBClient client,
String text)
|
void |
dispose()
|
void |
fixColourMapEntries(RFBClient client,
int firstColour,
Colour[] colourMap)
|
void |
frameBufferUpdateRequest(RFBClient client,
boolean incremental,
int x,
int y,
int w,
int h)
|
String |
getDesktopName(RFBClient client)
|
int |
getFrameBufferHeight(RFBClient client)
|
int |
getFrameBufferWidth(RFBClient client)
|
int |
getPixelHeight()
|
int[] |
getPixels()
|
int |
getPixelWidth()
|
PixelFormat |
getPreferredPixelFormat(RFBClient client)
|
void |
keyEvent(RFBClient client,
boolean down,
int key)
|
void |
pointerEvent(RFBClient client,
int buttonMask,
int x,
int y)
|
void |
removeClient(RFBClient client)
|
void |
setClientProtocolVersionMsg(RFBClient client,
String protocolVersionMsg)
|
void |
setEncodings(RFBClient client,
int[] encodings)
|
void |
setPixelArray(int[] pixelArray,
int pixelWidth,
int pixelHeight)
|
void |
setPixelFormat(RFBClient client,
PixelFormat pixelFormat)
|
void |
setShared(RFBClient client,
boolean shared)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private String name
width
private int width
height
private int height
redMask
private int redMask
greenMask
private int greenMask
blueMask
private int blueMask
clients
private RFBClients clients
shared
private boolean shared
pixelArray
private int[] pixelArray
queue
protected VNCQueue queue
VNCPixels
public VNCPixels(String name,
int width,
int height)
VNCPixels
public VNCPixels(String name,
int width,
int height,
int redMask,
int greenMask,
int blueMask)
dispose
public void dispose()
addClient
public void addClient(RFBClient client)
- Specified by:
addClient
in interface RFBServer
removeClient
public void removeClient(RFBClient client)
- Specified by:
removeClient
in interface RFBServer
getDesktopName
public String getDesktopName(RFBClient client)
- Specified by:
getDesktopName
in interface RFBServer
getFrameBufferWidth
public int getFrameBufferWidth(RFBClient client)
- Specified by:
getFrameBufferWidth
in interface RFBServer
getFrameBufferHeight
public int getFrameBufferHeight(RFBClient client)
- Specified by:
getFrameBufferHeight
in interface RFBServer
getPreferredPixelFormat
public PixelFormat getPreferredPixelFormat(RFBClient client)
- Specified by:
getPreferredPixelFormat
in interface RFBServer
allowShared
public boolean allowShared()
- Specified by:
allowShared
in interface RFBServer
setClientProtocolVersionMsg
public void setClientProtocolVersionMsg(RFBClient client,
String protocolVersionMsg)
throws IOException
- Specified by:
setClientProtocolVersionMsg
in interface RFBServer
IOException
setShared
public void setShared(RFBClient client,
boolean shared)
throws IOException
- Specified by:
setShared
in interface RFBServer
IOException
setPixelFormat
public void setPixelFormat(RFBClient client,
PixelFormat pixelFormat)
throws IOException
- Specified by:
setPixelFormat
in interface RFBServer
IOException
setEncodings
public void setEncodings(RFBClient client,
int[] encodings)
throws IOException
- Specified by:
setEncodings
in interface RFBServer
IOException
fixColourMapEntries
public void fixColourMapEntries(RFBClient client,
int firstColour,
Colour[] colourMap)
throws IOException
- Specified by:
fixColourMapEntries
in interface RFBServer
IOException
frameBufferUpdateRequest
public void frameBufferUpdateRequest(RFBClient client,
boolean incremental,
int x,
int y,
int w,
int h)
throws IOException
- Specified by:
frameBufferUpdateRequest
in interface RFBServer
IOException
keyEvent
public void keyEvent(RFBClient client,
boolean down,
int key)
throws IOException
- Specified by:
keyEvent
in interface RFBServer
IOException
pointerEvent
public void pointerEvent(RFBClient client,
int buttonMask,
int x,
int y)
throws IOException
- Specified by:
pointerEvent
in interface RFBServer
IOException
clientCutText
public void clientCutText(RFBClient client,
String text)
throws IOException
- Specified by:
clientCutText
in interface RFBServer
IOException
getPixels
public int[] getPixels()
- Specified by:
getPixels
in interface PixelsOwner
setPixelArray
public void setPixelArray(int[] pixelArray,
int pixelWidth,
int pixelHeight)
- Specified by:
setPixelArray
in interface PixelsOwner
getPixelWidth
public int getPixelWidth()
- Specified by:
getPixelWidth
in interface PixelsOwner
getPixelHeight
public int getPixelHeight()
- Specified by:
getPixelHeight
in interface PixelsOwner