gnu.vnc.console
Class VNCConsole
java.lang.Object
gnu.vnc.console.VNCConsole
- All Implemented Interfaces:
- RFBServer, java.lang.Runnable
public abstract class VNCConsole
- extends java.lang.Object
- implements RFBServer, java.lang.Runnable
- Author:
- Tal Liron
Constructor Summary |
VNCConsole(java.lang.String displayName,
int columns,
int rows,
int charW,
int charH)
|
Method Summary |
void |
addClient(RFBClient client)
|
boolean |
allowShared()
|
void |
clientCutText(RFBClient client,
java.lang.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)
|
java.lang.String |
getDesktopName(RFBClient client)
|
int |
getFrameBufferHeight(RFBClient client)
|
int |
getFrameBufferWidth(RFBClient client)
|
PixelFormat |
getPreferredPixelFormat(RFBClient client)
|
void |
keyEvent(RFBClient client,
boolean down,
int key)
|
abstract void |
main()
|
void |
pointerEvent(RFBClient client,
int buttonMask,
int x,
int y)
|
void |
removeClient(RFBClient client)
|
void |
run()
|
void |
setClientProtocolVersionMsg(RFBClient client,
java.lang.String protocolVersionMsg)
|
void |
setEncodings(RFBClient client,
int[] encodings)
|
void |
setPixelFormat(RFBClient client,
PixelFormat pixelFormat)
|
void |
setShared(RFBClient client,
boolean shared)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VNCConsole
public VNCConsole(java.lang.String displayName,
int columns,
int rows,
int charW,
int charH)
main
public abstract void main()
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 java.lang.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,
java.lang.String protocolVersionMsg)
throws java.io.IOException
- Specified by:
setClientProtocolVersionMsg
in interface RFBServer
- Throws:
java.io.IOException
setShared
public void setShared(RFBClient client,
boolean shared)
throws java.io.IOException
- Specified by:
setShared
in interface RFBServer
- Throws:
java.io.IOException
setPixelFormat
public void setPixelFormat(RFBClient client,
PixelFormat pixelFormat)
throws java.io.IOException
- Specified by:
setPixelFormat
in interface RFBServer
- Throws:
java.io.IOException
setEncodings
public void setEncodings(RFBClient client,
int[] encodings)
throws java.io.IOException
- Specified by:
setEncodings
in interface RFBServer
- Throws:
java.io.IOException
fixColourMapEntries
public void fixColourMapEntries(RFBClient client,
int firstColour,
Colour[] colourMap)
throws java.io.IOException
- Specified by:
fixColourMapEntries
in interface RFBServer
- Throws:
java.io.IOException
frameBufferUpdateRequest
public void frameBufferUpdateRequest(RFBClient client,
boolean incremental,
int x,
int y,
int w,
int h)
throws java.io.IOException
- Specified by:
frameBufferUpdateRequest
in interface RFBServer
- Throws:
java.io.IOException
keyEvent
public void keyEvent(RFBClient client,
boolean down,
int key)
throws java.io.IOException
- Specified by:
keyEvent
in interface RFBServer
- Throws:
java.io.IOException
pointerEvent
public void pointerEvent(RFBClient client,
int buttonMask,
int x,
int y)
throws java.io.IOException
- Specified by:
pointerEvent
in interface RFBServer
- Throws:
java.io.IOException
clientCutText
public void clientCutText(RFBClient client,
java.lang.String text)
throws java.io.IOException
- Specified by:
clientCutText
in interface RFBServer
- Throws:
java.io.IOException
run
public void run()
- Specified by:
run
in interface java.lang.Runnable