public class OneToOneCallPeerPanel extends TransparentPanel implements SwingCallPeerRenderer, java.beans.PropertyChangeListener, Skinnable
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HIDE_PLACEHOLDER_PIC_PROP
Property to disable showing the dummy picture for the peer when no
streams present.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
OneToOneCallPeerPanel(SwingCallRenderer callRenderer,
CallPeer callPeer,
UIVideoHandler2 uiVideoHandler)
Creates a CallPeerPanel for the given call peer.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases the resources acquired by this instance which require explicit
disposal (e.g.
|
CallPanel |
getCallPanel()
Returns the parent CallPanel containing this renderer.
|
CallRenderer |
getCallRenderer()
Returns the parent call renderer.
|
java.awt.Component |
getComponent()
Returns the component associated with this renderer.
|
java.lang.String |
getPeerName()
Returns the name of the peer, contained in this panel.
|
boolean |
isDtmfToneEnabled() |
boolean |
isLocalVideoVisible()
Determines whether the visual Component depicting the video
streaming from the local peer/user to the remote peer(s) is currently
visible.
|
void |
loadSkin()
Reloads all icons.
|
void |
printDTMFTone(char dtmfChar)
Prints the given DTMG character through this CallPeerRenderer.
|
void |
propertyChange(java.beans.PropertyChangeEvent ev)
Notifies this instance about a change in the value of a property of a
source which of interest to this instance.
|
void |
securityNegotiationStarted(CallPeerSecurityNegotiationStartedEvent evt)
The handler for the security event received.
|
void |
securityOff(CallPeerSecurityOffEvent evt)
Indicates that the security has gone off.
|
void |
securityOn(CallPeerSecurityOnEvent evt)
Indicates that the security is turned on.
|
void |
securityPending()
Indicates that the security status is pending confirmation.
|
void |
securityTimeout(CallPeerSecurityTimeoutEvent evt)
Indicates that the security is timeouted, is not supported by the
other end.
|
void |
setDtmfToneEnabled(boolean enabled)
Enable or disable DTMF tone handle
|
void |
setErrorReason(java.lang.String reason)
Sets the reason of a call failure if one occurs.
|
void |
setLocalVideoVisible(boolean visible)
Shows/hides the visual Component depicting the video streaming
from the local peer/user to the remote peer(s).
|
void |
setMute(boolean isMute)
Sets the mute status icon to the status panel.
|
void |
setOnHold(boolean isOnHold)
Sets the "on hold" property value.
|
void |
setPeerImage(byte[] image)
Set the image of the peer
|
void |
setPeerName(java.lang.String name)
Sets the name of the peer.
|
void |
setPeerState(CallPeerState oldState,
CallPeerState newState,
java.lang.String stateString)
Sets the state of the contained call peer by specifying the
state name.
|
void |
setSecurityPanelVisible(boolean isVisible)
Shows/hides the security panel.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String HIDE_PLACEHOLDER_PIC_PROP
public OneToOneCallPeerPanel(SwingCallRenderer callRenderer, CallPeer callPeer, UIVideoHandler2 uiVideoHandler)
callRenderer
- the renderer of the callcallPeer
- the CallPeer represented in this paneluiVideoHandler
- the facility which is to aid the new instance in
the dealing with the video-related informationpublic void dispose()
dispose
in interface CallPeerRenderer
public CallPanel getCallPanel()
getCallPanel
in interface SwingCallPeerRenderer
public CallRenderer getCallRenderer()
getCallRenderer
in interface CallPeerRenderer
public java.awt.Component getComponent()
getComponent
in interface SwingCallPeerRenderer
public java.lang.String getPeerName()
public boolean isLocalVideoVisible()
isLocalVideoVisible
in interface CallPeerRenderer
public void printDTMFTone(char dtmfChar)
printDTMFTone
in interface CallPeerRenderer
dtmfChar
- the DTMF char to printpublic void propertyChange(java.beans.PropertyChangeEvent ev)
CallContainer.PROP_FULL_SCREEN
property of its associated
callRenderer
.propertyChange
in interface java.beans.PropertyChangeListener
ev
- a PropertyChangeEvent which identifies the source, the
name of the property and the old and new valuespublic void securityNegotiationStarted(CallPeerSecurityNegotiationStartedEvent evt)
securityNegotiationStarted
in interface CallPeerRenderer
evt
- the security started event receivedpublic void securityOff(CallPeerSecurityOffEvent evt)
securityOff
in interface CallPeerRenderer
evt
- the CallPeerSecurityOffEvent that notified uspublic void securityOn(CallPeerSecurityOnEvent evt)
Sets the secured status icon to the status panel and initializes/updates the corresponding security details.
securityOn
in interface CallPeerRenderer
evt
- Details about the event that caused this message.public void securityPending()
securityPending
in interface CallPeerRenderer
public void securityTimeout(CallPeerSecurityTimeoutEvent evt)
securityTimeout
in interface CallPeerRenderer
evt
- Details about the event that caused this message.public void setErrorReason(java.lang.String reason)
setErrorReason
in interface CallPeerRenderer
reason
- the reason to displaypublic void setLocalVideoVisible(boolean visible)
setLocalVideoVisible
in interface CallPeerRenderer
visible
- true to show the visual Component
depicting the video streaming from the local peer/user to the remote
peer(s); false, otherwisepublic void setMute(boolean isMute)
setMute
in interface CallPeerRenderer
isMute
- indicates if the call with this peer is
mutedpublic void setOnHold(boolean isOnHold)
setOnHold
in interface CallPeerRenderer
isOnHold
- indicates if the call with this peer is put on holdpublic void setPeerImage(byte[] image)
setPeerImage
in interface CallPeerRenderer
image
- new imagepublic void setPeerName(java.lang.String name)
setPeerName
in interface CallPeerRenderer
name
- the name of the peerpublic void setPeerState(CallPeerState oldState, CallPeerState newState, java.lang.String stateString)
setPeerState
in interface CallPeerRenderer
oldState
- the previous state of the peernewState
- the new state of the peerstateString
- the state of the contained call peerpublic void setSecurityPanelVisible(boolean isVisible)
setSecurityPanelVisible
in interface CallPeerRenderer
isVisible
- true to show the security panel, false
to hide itpublic void setDtmfToneEnabled(boolean enabled)
CallPeerRenderer
setDtmfToneEnabled
in interface CallPeerRenderer
enabled
- - if true DTMF tone is enabled and disabled if falsepublic boolean isDtmfToneEnabled()
isDtmfToneEnabled
in interface CallPeerRenderer
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.