package lookandfeel;

import java.awt.*;
import javax.swing.*;
import javax.swing.plaf.metal.*;

/**
 * A LookAndFeel with (limited) audio
 *
 * @author  Prof. David Benrstein, James Madison University
 * @version 1.0
 */
public class AudioLookAndFeel extends MetalLookAndFeel
{
    private static final String description = "A LookAndFeel with audio";
    private static final String id          = "edu.jmu.cs.bernstdh.AudioLF";
    private static final String name        = "Audio LookAndFeel";



    /**
     * Get the UI Defaults for this LookAndFeel
     */
    public UIDefaults getDefaults()
    {
	Object[]         nvPair = {"ButtonUI","lookandfeel.AudioButtonUI"};
	UIDefaults       defaults;


	// Get the "normal" defaults
	defaults = super.getDefaults();

	// Add the new default and fire a PropertyChangeEvent
	defaults.putDefaults(nvPair);

	return defaults;
    }



    /**
     * Get the long description
     */
    public String getDescription()
    {
	return description;
    }


    /**
     * Get the String identifier
     */
    public String getID()
    {
	return id;
    }

    /**
     * Get the name
     */
    public String getName()
    {
	return name;
    }



    /**
     * Is this LF native to the OS?
     */
    public boolean isNativeLookAndFeel()
    {
	return false;
    }


    /**
     * Is this LF supported on this OS?
     */
    public boolean isSupportedLookAndFeel()
    {
	return true;
    }
}
