public class SizeChangeVideoEvent extends VideoEvent
Modifier and Type | Field and Description |
---|---|
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.
|
LOCAL, REMOTE, VIDEO_ADDED, VIDEO_REMOVED
Constructor and Description |
---|
SizeChangeVideoEvent(java.lang.Object source,
java.awt.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.
|
Modifier and Type | Method and Description |
---|---|
VideoEvent |
clone(java.lang.Object source)
Initializes a new instance of the run-time type of this instance which
has the same property values as this instance except for the source which
is set on the new instance to a specific value.
|
int |
getHeight()
Gets the new height of the associated visual Component.
|
int |
getWidth()
Gets the new width of the associated visual Component.
|
consume, getOrigin, getType, getVisualComponent, isConsumed, originToString, typeToString
public static final int VIDEO_SIZE_CHANGE
public SizeChangeVideoEvent(java.lang.Object source, java.awt.Component visualComponent, int origin, int width, int height)
source
- the source of the new SizeChangeVideoEventvisualComponent
- the visual Component depicting video
with the updated sizeorigin
- the origin of the video the new
SizeChangeVideoEvent is to notify aboutwidth
- the new width of visualComponentheight
- the new height of visualComponentpublic VideoEvent clone(java.lang.Object source)
clone
in class VideoEvent
source
- the Object which is to be reported as the source
of the new instancepublic int getHeight()
public int getWidth()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.