gnu.vnc.awt
Class VNCRobot
java.lang.Object
|
+--java.awt.Component
|
+--gnu.vnc.awt.VNCRobot
- All Implemented Interfaces:
- ImageObserver, MenuContainer, RFBServer, Serializable
- public class VNCRobot
- extends Component
- implements RFBServer
A very limited implementation of a Robot
that supports RFB clients.
- See Also:
- Serialized Form
Constructor Summary |
VNCRobot(int display,
String displayName,
int width,
int height)
|
Method Summary |
void |
addClient(RFBClient client)
|
boolean |
allowShared()
|
void |
clientCutText(RFBClient client,
String text)
|
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)
|
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 |
setPixelFormat(RFBClient client,
PixelFormat pixelFormat)
|
void |
setShared(RFBClient client,
boolean shared)
|
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate |
displayName
private String displayName
device
private GraphicsDevice device
robot
private Robot robot
mouseModifiers
private int mouseModifiers
VNCRobot
public VNCRobot(int display,
String displayName,
int width,
int height)
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