public class AWTVideoSizeControlImpl extends Object implements AWTVideoSizeControl
All interactions via AWTVideoSizeControlImpl happen in the coordinate space of the screen. For example, successfully setting the video's position to the location reported by getLocationOnScreen() on the xlet's root container will cause the upper-left hand corner of the video and the root container to coincide.
The screen, in the context of AWT, is the area into which graphics drawing operations are done. Its size is given by java.awt.Toolkit.getScreenSize(), and locations reported by Component.getLocationOnScreen() are given in the screen's coordinate system.
AWTVideoSize| Constructor and Description |
|---|
AWTVideoSizeControlImpl() |
| Modifier and Type | Method and Description |
|---|---|
AWTVideoSize |
checkSize(AWTVideoSize sz)
Find out how closely the underlying platform can approximate a desired
video size.
|
Component |
getControlComponent()
Get the
Component associated with this
Control object. |
AWTVideoSize |
getDefaultSize()
Get the default AWTVideoSize for this control.
|
AWTVideoSize |
getSize()
Get the AWTVideoSize at which the Player is currently operating.
|
Dimension |
getSourceVideoSize()
Get the size of the source video, in the screen's coordinat system.
|
boolean |
setSize(AWTVideoSize sz)
Set the video size.
|
public AWTVideoSize getSize()
getSize in interface AWTVideoSizeControlpublic AWTVideoSize getDefaultSize()
getDefaultSize in interface AWTVideoSizeControlAWTVideoSize.public Dimension getSourceVideoSize()
getSourceVideoSize in interface AWTVideoSizeControlpublic boolean setSize(AWTVideoSize sz)
setSize in interface AWTVideoSizeControlsz - The desired video size, in the AWT coordinate space.checkSize(AWTVideoSize)public AWTVideoSize checkSize(AWTVideoSize sz)
checkSize in interface AWTVideoSizeControlsz - The desired video size.public Component getControlComponent()
Component associated with this
Control object.
For example, this method might return
a slider for volume control or a panel containing radio buttons for
CODEC control.
The getControlComponent method can return
null if there is no GUI control for
this Control.getControlComponent in interface ControlCopyright © 2012 code4tv.com. All Rights Reserved.