public class ConferenceFocusPanel extends TransparentPanel implements ConferenceCallPeerRenderer, Skinnable
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
ConferenceFocusPanel(BasicConferenceCallPanel callRenderer,
CallPeer callPeer)
Initializes a new ConferenceFocusPanel which is to depict a
specific CallPeer on behalf of a specific
BasicConferenceCallPanel i.e.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases the resources acquired by this instance which require explicit
disposal (e.g.
|
void |
enableVideoIndicator(boolean enable)
Enables or disabled video indicator of the focusPeerPanel.
|
void |
enableVideoIndicator(ConferenceMember confMember,
boolean enable)
Enables or disabled video indicator in this conference participant
panel.
|
CallPanel |
getCallPanel()
Returns the parent CallPanel containing this renderer.
|
SwingCallRenderer |
getCallRenderer()
Returns the parent call renderer.
|
java.awt.Component |
getComponent()
Returns the component associated with this renderer.
|
boolean |
isDtmfToneEnabled() |
boolean |
isLocalVideoVisible()
Indicates if the local video component is currently visible.
|
void |
loadSkin()
Loads the skin for this skinnable.
|
protected void |
onCallPeerConferenceEvent(CallPeerConferenceEvent ev)
Notifies this instance about a specific CallPeerConferenceEvent
which was fired by
focusPeer . |
protected void |
onCallPeerConferenceEventInEventDispatchThread(CallPeerConferenceEvent ev)
Notifies this instance about a specific CallPeerConferenceEvent
which was fired by
focusPeer . |
void |
paintComponent(java.awt.Graphics g)
Overrides
JComponent.paintComponent(Graphics) in order to
customize the background of this panel. |
void |
printDTMFTone(char dtmfChar)
Prints the given DTMG character through this CallPeerRenderer.
|
void |
securityNegotiationStarted(CallPeerSecurityNegotiationStartedEvent securityNegotiationStartedEvent)
The handler for the security event received.
|
void |
securityOff(CallPeerSecurityOffEvent evt)
Indicates that the security is turned 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 isVisible)
Shows/hides the local video component.
|
void |
setMute(boolean isMute)
Sets the mute property value.
|
void |
setOnHold(boolean isOnHold)
Sets the "on hold" property value.
|
void |
setPeerImage(byte[] image)
Sets 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 visible)
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, 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 ConferenceFocusPanel(BasicConferenceCallPanel callRenderer, CallPeer callPeer)
callRenderer
- the BasicConferenceCallPanel which requests
the initialization of the new instance and which will use the new
instance to depict the specified CallPeercallPeer
- the CallPeer to be depicted by the new instancepublic void dispose()
dispose
in interface CallPeerRenderer
public CallPanel getCallPanel()
getCallPanel
in interface SwingCallPeerRenderer
public SwingCallRenderer getCallRenderer()
getCallRenderer
in interface CallPeerRenderer
public java.awt.Component getComponent()
getComponent
in interface SwingCallPeerRenderer
public boolean isLocalVideoVisible()
isLocalVideoVisible
in interface CallPeerRenderer
public void loadSkin()
protected void onCallPeerConferenceEvent(CallPeerConferenceEvent ev)
focusPeer
. The notification is brought in the
AWT event dispatching thread.ev
- the CallPeerConferenceEvent which was fired by
focusPeer
and which this instance is notified aboutprotected void onCallPeerConferenceEventInEventDispatchThread(CallPeerConferenceEvent ev)
focusPeer
.ev
- the CallPeerConferenceEvent which was fired by
focusPeer
and which this instance is notified aboutpublic void paintComponent(java.awt.Graphics g)
JComponent.paintComponent(Graphics)
in order to
customize the background of this panel.paintComponent
in class javax.swing.JComponent
g
- the Graphics object used for paintingpublic void printDTMFTone(char dtmfChar)
printDTMFTone
in interface CallPeerRenderer
dtmfChar
- the DTMF char to printpublic void securityNegotiationStarted(CallPeerSecurityNegotiationStartedEvent securityNegotiationStartedEvent)
securityNegotiationStarted
in interface CallPeerRenderer
securityNegotiationStartedEvent
- the security started event receivedpublic void securityOff(CallPeerSecurityOffEvent evt)
securityOff
in interface CallPeerRenderer
evt
- Details about the event that caused this message.public void securityOn(CallPeerSecurityOnEvent evt)
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 of the error to setpublic void setLocalVideoVisible(boolean isVisible)
setLocalVideoVisible
in interface CallPeerRenderer
isVisible
- true to show the local video, 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
- the image to setpublic 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 visible)
setSecurityPanelVisible
in interface CallPeerRenderer
visible
- true to show the security panel or false
to hide itpublic void enableVideoIndicator(ConferenceMember confMember, boolean enable)
confMember
- the ConferenceMember, which video indicator
we'd like to updateenable
- true to enable video indicator, false -
otherwisepublic void enableVideoIndicator(boolean enable)
enable
- true to enable video indicator, false -
otherwisepublic 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.