Class 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 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

      • 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:
        clone in class VideoEvent
        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