Package ejmf.toolkit.controls

Source Code of ejmf.toolkit.controls.StandardGainButtonPanel

package ejmf.toolkit.controls;

import javax.swing.AbstractButton;

import ejmf.toolkit.gui.controls.AbstractGainButtonPanel;
import ejmf.toolkit.gui.controls.VolumeControlButton;

/**
* Provides up/down arrow buttons for increasing/decreasing
* Player gain. This panel is used by StandardGainControl.
*/

class StandardGainButtonPanel extends AbstractGainButtonPanel {

  /**
  * Create button for increasing gain.
  * @return An AbstractButton that acts as gain increase
  * control.
  */
    public AbstractButton createGainIncreaseButton() {
  return(new VolumeControlButton(VolumeControlButton.INCREASE));
    }

  /**
  * Create button for decreasing gain.
  * @return An AbstractButton that acts as gain decrease
  * control.
  */
    public AbstractButton createGainDecreaseButton() {
   return(new VolumeControlButton(VolumeControlButton.DECREASE));
    }
}
TOP

Related Classes of ejmf.toolkit.controls.StandardGainButtonPanel

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.