org.eclipse.ecf.presence.collab.ui.screencapture
Class ScreenCaptureShare

java.lang.Object
  extended by org.eclipse.ecf.datashare.AbstractShare
      extended by org.eclipse.ecf.presence.collab.ui.AbstractCollabShare
          extended by org.eclipse.ecf.presence.collab.ui.screencapture.ScreenCaptureShare

public class ScreenCaptureShare
extends AbstractCollabShare

Send/receive requests to share a specific view (identified by view ID).


Field Summary
 
Fields inherited from class org.eclipse.ecf.datashare.AbstractShare
adapter, channel
 
Constructor Summary
ScreenCaptureShare(IChannelContainerAdapter adapter)
           
 
Method Summary
static ScreenCaptureShare addScreenCaptureShare(ID containerID, IChannelContainerAdapter channelAdapter)
           
 void dispose()
           
static ScreenCaptureShare getScreenCaptureShare(ID containerID)
           
protected  void handleMessage(ID fromContainerID, byte[] data)
          Receive message for this channel.
protected  void handleScreenCaptureData(ID id, byte[] data, java.lang.Boolean done)
           
protected  void handleScreenCaptureStart(ID id, java.lang.String fromUser, ImageWrapper imageWrapper)
           
static ScreenCaptureShare removeScreenCaptureShare(ID containerID)
           
 void sendImage(ID senderID, java.lang.String senderuser, ID toID, org.eclipse.swt.graphics.ImageData imageData)
           
 
Methods inherited from class org.eclipse.ecf.presence.collab.ui.AbstractCollabShare
deserialize, logError, logError, serialize
 
Methods inherited from class org.eclipse.ecf.datashare.AbstractShare
getChannel, handleChannelEvent, handleConnectEvent, handleDisconnectEvent, isDisposed, sendMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenCaptureShare

public ScreenCaptureShare(IChannelContainerAdapter adapter)
                   throws ECFException
Throws:
ECFException
Method Detail

getScreenCaptureShare

public static ScreenCaptureShare getScreenCaptureShare(ID containerID)

addScreenCaptureShare

public static ScreenCaptureShare addScreenCaptureShare(ID containerID,
                                                       IChannelContainerAdapter channelAdapter)
                                                throws ECFException
Throws:
ECFException

removeScreenCaptureShare

public static ScreenCaptureShare removeScreenCaptureShare(ID containerID)

dispose

public void dispose()
Overrides:
dispose in class AbstractShare

handleScreenCaptureStart

protected void handleScreenCaptureStart(ID id,
                                        java.lang.String fromUser,
                                        ImageWrapper imageWrapper)

handleScreenCaptureData

protected void handleScreenCaptureData(ID id,
                                       byte[] data,
                                       java.lang.Boolean done)

sendImage

public void sendImage(ID senderID,
                      java.lang.String senderuser,
                      ID toID,
                      org.eclipse.swt.graphics.ImageData imageData)

handleMessage

protected void handleMessage(ID fromContainerID,
                             byte[] data)
Description copied from class: AbstractShare
Receive message for this channel. This method will be called asynchronously by an arbitrary thread when data to the associated channel is received.

Specified by:
handleMessage in class AbstractShare
Parameters:
fromContainerID - the ID of the sender container. Will not be null.
data - the data received on the channel. Will not be null.