Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class SizeChangeVideoEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.VideoEvent
          extended by net.java.sip.communicator.service.protocol.event.SizeChangeVideoEvent
All Implemented Interfaces:
Serializable

public class SizeChangeVideoEvent
extends VideoEvent

Represents a VideoEvent which notifies about an update to the size of a specific visual Component depicting video.

Author:
Lubomir Marinov
See Also:
Serialized Form

Field Summary
static int VIDEO_SIZE_CHANGE
          The type of a VideoEvent which notifies about an update to the size of a specific visual Component depicting video.
 
Fields inherited from class net.java.sip.communicator.service.protocol.event.VideoEvent
LOCAL, REMOTE, VIDEO_ADDED, VIDEO_REMOVED
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SizeChangeVideoEvent(Object source, Component visualComponent, int origin, int width, int height)
          Initializes a new SizeChangeVideoEvent which is to notify about an update to the size of a specific visual Component depicting video.
 
Method Summary
 int getHeight()
          Gets the new height of the associated visual Component.
 int getWidth()
          Gets the new width of the associated visual Component.
 
Methods inherited from class net.java.sip.communicator.service.protocol.event.VideoEvent
consume, getOrigin, getType, getVisualComponent, isConsumed
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VIDEO_SIZE_CHANGE

public static final int VIDEO_SIZE_CHANGE
The type of a VideoEvent which notifies about an update to the size of a specific visual Component depicting video.

See Also:
Constant Field Values
Constructor Detail

SizeChangeVideoEvent

public SizeChangeVideoEvent(Object source,
                            Component visualComponent,
                            int origin,
                            int width,
                            int height)
Initializes a new SizeChangeVideoEvent which is to notify about an update to the size of a specific visual Component depicting video.

Parameters:
source - the source of the new SizeChangeVideoEvent
visualComponent - the visual Component depicting video with the updated size
origin - the origin of the video the new SizeChangeVideoEvent is to notify about
width - the new width of visualComponent
height - the new height of visualComponent
Method Detail

getHeight

public int getHeight()
Gets the new height of the associated visual Component.

Returns:
the new height of the associated visual Component

getWidth

public int getWidth()
Gets the new width of the associated visual Component.

Returns:
the new width of the associated visual Component

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.