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

H261Adapter

public class H261Adapter extends Object implements javax.media.control.H261Control
Implementation for H261Control

Fields Summary
Codec
owner
boolean
isSetable
boolean
stillImage
Component
component
String
CONTROL_STRING
Constructors Summary
public H261Adapter(Codec newOwner, boolean newStillImage, boolean newIsSetable)



           
        stillImage= newStillImage;
        owner = newOwner;
        isSetable = newIsSetable;
    
Methods Summary
public java.awt.ComponentgetControlComponent()

        if (component ==null ) {
            Panel componentPanel=new Panel();
            componentPanel.setLayout(new BorderLayout() );
            componentPanel.add("Center",new Label(CONTROL_STRING,Label.CENTER) );
            Checkbox cb=new Checkbox(null,null,stillImage);
            cb.setEnabled(isSetable);
            cb.addItemListener( (ItemListener) new H261AdapterListener(cb) );

            componentPanel.add("East",cb );
            componentPanel.invalidate();
            component=componentPanel;

        }
        return (Component)component;
    
public booleangetStillImageTransmission()
Returns if still image transmission was enabled

return
if still image transmission was enabled

        return stillImage;
    
public booleanisStillImageTransmissionSupported()
Returns if still image transmission is supported

return
if still image transmission is supported

         return stillImage;
    
public booleansetStillImageTransmission(boolean newStillImageTransmission)
Sets the still image transmission mode

param
newStillImageTransmission the requested still image transmission mode
return
the actual still image transmission mode that was set

        return stillImage;