public class OneToOneCallPanel extends TransparentPanel implements SwingCallRenderer, java.beans.PropertyChangeListener
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 |
---|
OneToOneCallPanel(CallPanel callContainer,
CallPeer callPeer,
UIVideoHandler2 uiVideoHandler)
Initializes a new OneToOneCallPanel which is to depict a
one-to-one audio and/or video conversation of the local peer/user with a
specific remote CallPeer and which is to be used by a specific
CallPanel for that purpose.
|
Modifier and Type | Method and Description |
---|---|
void |
addDesktopSharingComponents()
Adds all desktop sharing related components to this container.
|
void |
dispose()
Releases the resources acquired by this instance which require explicit
disposal (e.g.
|
CallPanel |
getCallContainer()
Returns the parent call container, where this renderer is contained.
|
CallPeer |
getCallPeer()
Gets the CallPeer depicted by this instance.
|
SwingCallPeerRenderer |
getCallPeerRenderer(CallPeer callPeer)
Returns the CallPeerRenderer corresponding to the given
callPeer.
|
boolean |
isCallTimerStarted()
Returns
true if the call timer has been started, otherwise
returns false . |
(package private) boolean |
isFullScreen()
Determines whether this view is displayed in full-screen or windowed
mode.
|
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 |
removeDesktopSharingComponents()
Removes all desktop sharing related components from this container.
|
void |
setPeerName(java.lang.String name)
Sets the name of the peer.
|
void |
startCallTimer()
Starts the timer that counts call duration.
|
void |
stopCallTimer()
Stops the timer that counts call duration.
|
void |
updateHoldButtonState()
Updates the state of the general hold button.
|
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 OneToOneCallPanel(CallPanel callContainer, CallPeer callPeer, UIVideoHandler2 uiVideoHandler)
callContainer
- the CallPanel which requested the
initialization of the new instance and which is to use it to depict the
one-to-one audio and/or video conversation of the local peer/user with
the specified callPeercallPeer
- the CallPeer whose one-to-one audio and/or video
conversation with the local peer/user is to be depicted by the new
instanceuiVideoHandler
- the utility which is to aid the new instance in
dealing with the video-related informationpublic void addDesktopSharingComponents()
public void dispose()
dispose
in interface CallRenderer
public CallPanel getCallContainer()
getCallContainer
in interface SwingCallRenderer
public CallPeer getCallPeer()
public SwingCallPeerRenderer getCallPeerRenderer(CallPeer callPeer)
getCallPeerRenderer
in interface CallRenderer
callPeer
- the CallPeer, for which we're looking for a
rendererboolean isFullScreen()
public void propertyChange(java.beans.PropertyChangeEvent ev)
CallContainer.PROP_FULL_SCREEN
property of its associated callContainer
.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 removeDesktopSharingComponents()
public void setPeerName(java.lang.String name)
name
- the name of the peerpublic void startCallTimer()
startCallTimer
in interface CallRenderer
public void stopCallTimer()
stopCallTimer
in interface CallRenderer
public boolean isCallTimerStarted()
true
if the call timer has been started, otherwise
returns false
.isCallTimerStarted
in interface CallRenderer
true
if the call timer has been started, otherwise
returns false
public void updateHoldButtonState()
updateHoldButtonState
in interface CallRenderer
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.