public class WhiteboardSessionManager extends java.lang.Object implements WhiteboardObjectListener
Constructor and Description |
---|
WhiteboardSessionManager()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptInvitation(WhiteboardInvitation invitation)
Called to accept an incoming invitation.
|
void |
deleteWhiteboardObject(WhiteboardSession wbSession,
WhiteboardShape ws)
Deletes a WhiteboardShape from the white-board.
|
void |
initWhiteboard(Contact contact)
Initialize (a new) Whiteboard with contact
|
void |
moveWhiteboardObject(WhiteboardSession wbSession,
WhiteboardShape ws)
Moves a WhiteboardShape from from one point to another on the
board.
|
void |
rejectInvitation(OperationSetWhiteboarding whiteboardOpSet,
WhiteboardInvitation invitation,
java.lang.String reason)
Rejects the given invitation with the specified reason.
|
void |
removeWhiteboardWindow(WhiteboardFrame frame)
Removes a white board frame.
|
WhiteboardObject |
sendWhiteboardObject(WhiteboardSession wbSession,
WhiteboardShape ws)
Construct (with WhiteboardSession) and send
a WhiteboardObject to a contact.
|
void |
whiteboardObjecModified(WhiteboardObjectModifiedEvent evt)
Called when a modified WhiteboardObject has been received.
|
void |
whiteboardObjectDeleted(WhiteboardObjectDeletedEvent evt)
Called when a deleted WhiteboardObject has been received.
|
void |
whiteboardObjectDelivered(WhiteboardObjectDeliveredEvent evt)
Called when the underlying implementation has received an indication
that a WhiteboardObject, sent earlier has been successfully
received by the destination.
|
void |
whiteboardObjectDeliveryFailed(WhiteboardObjectDeliveryFailedEvent evt)
Called to indicate that delivery of a WhiteboardObject sent earlier
has failed.
|
void |
whiteboardObjectReceived(WhiteboardObjectReceivedEvent evt)
Called when a new incoming WhiteboardObject has been received.
|
public void initWhiteboard(Contact contact)
contact
- Contact used to init whiteboardpublic WhiteboardObject sendWhiteboardObject(WhiteboardSession wbSession, WhiteboardShape ws) throws OperationFailedException
wbSession
- the white-board session, to which the object would be
sendws
- WhiteboardShape to convert and sendOperationFailedException
public void moveWhiteboardObject(WhiteboardSession wbSession, WhiteboardShape ws)
wbSession
- the white-board session, to which the moved object
belongsws
- the shape to movepublic void deleteWhiteboardObject(WhiteboardSession wbSession, WhiteboardShape ws)
wbSession
- the white-board session, to which the object belongsws
- the shape to deletepublic void whiteboardObjecModified(WhiteboardObjectModifiedEvent evt)
whiteboardObjecModified
in interface WhiteboardObjectListener
evt
- the WhiteboardObjectReceivedEvent containing the
modified whiteboardObject, its sender and other details.public void whiteboardObjectReceived(WhiteboardObjectReceivedEvent evt)
whiteboardObjectReceived
in interface WhiteboardObjectListener
evt
- the WhiteboardObjectReceivedEvent containing
the newly received WhiteboardObject, its sender and other details.public void whiteboardObjectDelivered(WhiteboardObjectDeliveredEvent evt)
whiteboardObjectDelivered
in interface WhiteboardObjectListener
evt
- the WhiteboardObjectDeliveredEvent containing the id of the
WhiteboardObject that has caused the event.public void whiteboardObjectDeliveryFailed(WhiteboardObjectDeliveryFailedEvent evt)
whiteboardObjectDeliveryFailed
in interface WhiteboardObjectListener
evt
- the WhiteboardObjectDeliveryFailedEvent
containing the ID of the WhiteboardObject whose delivery has failed.public void whiteboardObjectDeleted(WhiteboardObjectDeletedEvent evt)
whiteboardObjectDeleted
in interface WhiteboardObjectListener
evt
- the WhiteboardObjectDeletedEvent containing
the identification of the deleted WhiteboardObject, its sender and
other details.public void acceptInvitation(WhiteboardInvitation invitation)
invitation
- the invitation to accept.public void rejectInvitation(OperationSetWhiteboarding whiteboardOpSet, WhiteboardInvitation invitation, java.lang.String reason)
whiteboardOpSet
- the operation set to use for rejecting the
invitationinvitation
- the invitation to rejectreason
- the reason for the rejectionpublic void removeWhiteboardWindow(WhiteboardFrame frame)
frame
- the frame to remove
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.