org.eclipse.ecf.presence.collab.ui.screencapture
Class ScreenCaptureShare
java.lang.Object
org.eclipse.ecf.datashare.AbstractShare
org.eclipse.ecf.presence.collab.ui.AbstractCollabShare
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScreenCaptureShare
public ScreenCaptureShare(IChannelContainerAdapter adapter)
throws ECFException
- Throws:
ECFException
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
.