FileDocCategorySizeDatePackage
VideoSizingControl.javaAPI DocJMF 2.1.1e2120Mon May 12 12:20:56 BST 2003com.sun.media.controls

VideoSizingControl

public interface VideoSizingControl implements Control

Fields Summary
Constructors Summary
Methods Summary
public java.awt.RectanglegetClipRegion()
Returns the current clip rectangle in effect.

see
#setClipRegion

public java.awt.DimensiongetInputVideoSize()
Returns the actual frame size of the video input stream.

public float[]getValidZoomFactors()
If the control supports fixed zoom factors then this method returns a list of zoom factors that are available.

public com.sun.media.controls.BooleanControlgetVideoMute()
Freezes the video window, i.e., continues reading/decoding the video but does not update the video window. Audio, if available, will continue playing.

public java.awt.DimensiongetVideoSize()
Returns the current size of the video window.

public com.sun.media.controls.NumericControlgetZoomControl()
Returns a zoom control if available, else returns null.

public java.awt.RectanglesetClipRegion(java.awt.Rectangle clip)
Sets the clip region if the player supports clipping. Returns the actual clip rectangle that was set.

see
#getClipRegion

public java.awt.DimensionsetVideoSize(java.awt.Dimension size)
Sets the video window to an arbitrary size causing the video to be scaled accordingly. Returns the actual size that the window was set to, which might be different from the requested size due to constraints.

public booleansupportsAnyScale()
Returns true if the video window can be scaled to any size.

public booleansupportsClipping()
Returns true if the video can be clipped to a rectangular region before it is displayed.

public booleansupportsZoom()
Returns true if the video can be scaled to fixed zoom factors. Use this only if supportsAnyScale returns false.

see
#getValidZoomFactors