|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
uk.org.toot.control.Control
uk.org.toot.control.LawControl
uk.org.toot.audio.fader.FaderControl
public class FaderControl
A FaderControl extends LawControl and differs from FloatControl in that it is concerned with the unity gain point.
Constructor Summary | |
---|---|
FaderControl(int id,
FaderLaw law)
|
|
FaderControl(int id,
FaderLaw law,
float initialValue)
Constructs a new float control object with the given parameters. |
|
FaderControl(int id,
FaderLaw law,
float initialValue,
java.lang.String minLabel,
java.lang.String unityLabel,
java.lang.String maxLabel)
Constructs a new fader control object with the given parameters |
Method Summary | |
---|---|
void |
applyPreset(java.lang.String name)
|
java.lang.String |
getMaxLabel()
Obtains the label for the maximum value, such as "Right" or "Full." |
java.lang.String |
getMinLabel()
Obtains the label for the minimum value, such as "Left" or "Off." |
java.lang.String[] |
getPresetNames()
|
java.lang.String |
getUnityLabel()
Obtains the label for the mid-point value, such as "Center" or "Default." |
java.lang.String |
toString()
Provides a string representation of the control |
Methods inherited from class uk.org.toot.control.LawControl |
---|
getInsertColor, getIntValue, getLaw, getPrecision, getValue, getValueString, setInsertColor, setIntValue, setValue |
Methods inherited from class uk.org.toot.control.Control |
---|
getAnnotation, getControlPath, getControlPath, getId, getName, getParent, isAdjusting, isEnabled, isHidden, isIndicator, setAdjusting, setAnnotation, setEnabled, setHidden, setName |
Methods inherited from class java.util.Observable |
---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FaderControl(int id, FaderLaw law)
public FaderControl(int id, FaderLaw law, float initialValue, java.lang.String minLabel, java.lang.String unityLabel, java.lang.String maxLabel)
initialValue
- the value that the control starts with when constructedminLabel
- the label for the minimum value, such as "-infinity"unityLabel
- the label for the unity value, such as "0dB"maxLabel
- the label for the maximum value, such as "+15dB"public FaderControl(int id, FaderLaw law, float initialValue)
initialValue
- the value that the control starts with when constructedMethod Detail |
---|
public java.lang.String[] getPresetNames()
getPresetNames
in class LawControl
public void applyPreset(java.lang.String name)
applyPreset
in class LawControl
public java.lang.String getMinLabel()
public java.lang.String getUnityLabel()
public java.lang.String getMaxLabel()
public java.lang.String toString()
toString
in class Control
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |