< prev index next >

src/java.desktop/share/classes/javax/sound/sampled/CompoundControl.java

Print this page




  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.sound.sampled;
  27 
  28 /**
  29  * A {@code CompoundControl}, such as a graphic equalizer, provides control over
  30  * two or more related properties, each of which is itself represented as a
  31  * {@code Control}.
  32  *
  33  * @author Kara Kytle
  34  * @since 1.3
  35  */
  36 public abstract class CompoundControl extends Control {
  37 
  38     /**
  39      * The set of member controls.
  40      */
  41     private Control[] controls;
  42 
  43     /**
  44      * Constructs a new compound control object with the given parameters.
  45      *
  46      * @param  type the type of control represented this compound control object
  47      * @param  memberControls the set of member controls
  48      */
  49     protected CompoundControl(Type type, Control[] memberControls) {
  50         super(type);
  51         this.controls = memberControls;
  52     }
  53 
  54     /**
  55      * Returns the set of member controls that comprise the compound control.
  56      *
  57      * @return the set of member controls
  58      */
  59     public Control[] getMemberControls() {
  60         Control[] localArray = new Control[controls.length];
  61 




  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.sound.sampled;
  27 
  28 /**
  29  * A {@code CompoundControl}, such as a graphic equalizer, provides control over
  30  * two or more related properties, each of which is itself represented as a
  31  * {@code Control}.
  32  *
  33  * @author Kara Kytle
  34  * @since 1.3
  35  */
  36 public abstract class CompoundControl extends Control {
  37 
  38     /**
  39      * The set of member controls.
  40      */
  41     private final Control[] controls;
  42 
  43     /**
  44      * Constructs a new compound control object with the given parameters.
  45      *
  46      * @param  type the type of control represented this compound control object
  47      * @param  memberControls the set of member controls
  48      */
  49     protected CompoundControl(Type type, Control[] memberControls) {
  50         super(type);
  51         this.controls = memberControls;
  52     }
  53 
  54     /**
  55      * Returns the set of member controls that comprise the compound control.
  56      *
  57      * @return the set of member controls
  58      */
  59     public Control[] getMemberControls() {
  60         Control[] localArray = new Control[controls.length];
  61 


< prev index next >