com.sun.media.controls.SilenceSuppressionAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fmj Show documentation
Show all versions of fmj Show documentation
Freedom for Media in Java
package com.sun.media.controls;
import java.awt.*;
import javax.media.*;
import javax.media.control.*;
/**
* TODO: stub.
*
* @author Ken Larson
*
*/
public class SilenceSuppressionAdapter implements SilenceSuppressionControl
{
protected Codec owner;
protected boolean silenceSuppression;
protected boolean isSetable;
Component component;
String CONTROL_STRING;
public SilenceSuppressionAdapter(Codec owner, boolean silenceSuppression,
boolean isSetable)
{
this.owner = owner;
this.silenceSuppression = silenceSuppression;
this.isSetable = isSetable;
}
public Component getControlComponent()
{
return component; // TODO: is null
}
public boolean getSilenceSuppression()
{
return silenceSuppression;
}
public boolean isSilenceSuppressionSupported()
{
return isSetable;
}
public boolean setSilenceSuppression(boolean silenceSuppression)
{
if (isSetable)
this.silenceSuppression = silenceSuppression;
return this.silenceSuppression;
}
}