/[svn]/jlscp/trunk/src/org/linuxsampler/lscp/EffectParameter.java
ViewVC logotype

Diff of /jlscp/trunk/src/org/linuxsampler/lscp/EffectParameter.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2193 by iliev, Tue Jun 28 20:35:21 2011 UTC revision 2194 by iliev, Tue Jun 28 22:08:23 2011 UTC
# Line 26  package org.linuxsampler.lscp; Line 26  package org.linuxsampler.lscp;
26   * @author Grigor Iliev   * @author Grigor Iliev
27   */   */
28  public class EffectParameter extends FloatParameter {  public class EffectParameter extends FloatParameter {
29            private final int instanceId;
30            private final int index;
31                    
32            public EffectParameter(int instanceId, int index) {
33                    this.instanceId = instanceId;
34                    this.index = index;
35            }
36            
37            /** Gets the numerical ID of the effect instance to which this parameter belongs. */
38            public int
39            getEffectInstanceId() { return instanceId; }
40            
41            /** Gets the position of the parameter in the effect instance's parameter list. */
42            public int
43            getIndex() { return index; }
44                    
45          /**          /**
46           * Parses a line of text.           * Parses a line of text.
# Line 52  public class EffectParameter extends Flo Line 66  public class EffectParameter extends Flo
66                                    
67                  return false;                  return false;
68          }          }
69            
70            @Override
71            public String
72            toString() { return getDescription() != null ? getDescription() : super.toString(); }
73  }  }

Legend:
Removed from v.2193  
changed lines
  Added in v.2194

  ViewVC Help
Powered by ViewVC