public class DesktopSharingMouseAndKeyboardListener extends java.lang.Object implements RemoteControlListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Modifier and Type | Field and Description |
---|---|
(package private) CallPeerRenderer |
callPeerRenderer
Current call peer renderer for control DTMF handling state
|
Constructor and Description |
---|
DesktopSharingMouseAndKeyboardListener(CallPeer callPeer,
CallPeerRenderer callPeerRenderer)
Initializes a new DesktopSharingMouseAndKeyboardListener
instance which is to handle mouse and keyboard events for the purposes of
desktop sharing with a specific CallPeer.
|
DesktopSharingMouseAndKeyboardListener(CallPeer callPeer,
OperationSetDesktopSharingClient desktopSharingClient,
CallPeerRenderer callPeerRenderer)
Initializes a new DesktopSharingMouseAndKeyboardListener
instance which is to handle mouse and keyboard events for the purposes of
desktop sharing with a specific CallPeer.
|
Modifier and Type | Method and Description |
---|---|
CallPeer |
getCallPeer()
Returns the remote-controlled CallPeer.
|
void |
keyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed.
|
void |
keyReleased(java.awt.event.KeyEvent e)
Invoked when a key has been released.
|
void |
keyTyped(java.awt.event.KeyEvent e)
Invoked when a key has been typed.
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on
a component.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a
component and then dragged.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse cursor has been moved
onto a component but no buttons have been pushed.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.
|
void |
remoteControlGranted(RemoteControlGrantedEvent event)
This method is called when remote control has been granted.
|
void |
remoteControlRevoked(RemoteControlRevokedEvent event)
This method is called when remote control has been revoked.
|
void |
setVideoComponent(java.awt.Component videoComponent)
Sets the video displaying component for the streamed remote desktop.
|
CallPeerRenderer callPeerRenderer
public DesktopSharingMouseAndKeyboardListener(CallPeer callPeer, CallPeerRenderer callPeerRenderer)
callPeer
- the CallPeer which is controlled remotely and to
which the mouse and keyboard events are to be sentcallPeerRenderer
- the renderer of the current peer (at our end)public DesktopSharingMouseAndKeyboardListener(CallPeer callPeer, OperationSetDesktopSharingClient desktopSharingClient, CallPeerRenderer callPeerRenderer)
callPeer
- the CallPeer which is controlled remotely and to
which the mouse and keyboard events are to be sentdesktopSharingClient
- the OperationSetDesktopSharingClient
instance which is to send the mouse and keyboard events to the specified
callPeercallPeerRenderer
- the renderer of the current peer (at our end)public CallPeer getCallPeer()
getCallPeer
in interface RemoteControlListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
e
- The keyboard event.public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
e
- The keyboard event.public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
e
- The keyboard event.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- The mouse event.public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
e
- The mouse dragged event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- The mouse event.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- The mouse event.public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
e
- The mouse moved event.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- The mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- The mouse event.public void remoteControlGranted(RemoteControlGrantedEvent event)
remoteControlGranted
in interface RemoteControlListener
event
- The event which grants us the control of the remote call
peer.public void remoteControlRevoked(RemoteControlRevokedEvent event)
remoteControlRevoked
in interface RemoteControlListener
event
- The event which revokes us the control of the remote call
peer.public void setVideoComponent(java.awt.Component videoComponent)
videoComponenet
- The video component displaying the remote desktop.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.