Package org.jitsi.util.event
Class SizeChangeVideoEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.jitsi.util.event.VideoEvent
-
- org.jitsi.util.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:
- Lyubomir Marinov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intVIDEO_SIZE_CHANGEThe type of a VideoEvent which notifies about an update to the size of a specific visual Component depicting video.-
Fields inherited from class org.jitsi.util.event.VideoEvent
LOCAL, REMOTE, VIDEO_ADDED, VIDEO_REMOVED
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoEventclone(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.intgetHeight()Gets the new height of the associated visual Component.intgetWidth()Gets the new width of the associated visual Component.-
Methods inherited from class org.jitsi.util.event.VideoEvent
consume, getOrigin, getType, getVisualComponent, isConsumed, originToString, typeToString
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
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 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 visualComponent
-
-
Method Detail
-
clone
public VideoEvent clone(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. Makes sure that the cloning of this instance initializes a new SizeChangeVideoEvent instance.- Overrides:
clonein classVideoEvent- Parameters:
source- the Object which is to be reported as the source of the new instance- Returns:
- 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 the specified source
-
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
-
-