Methods Summary |
---|
public void | displayValue(int value, boolean fromTouch)
String text = Integer.toString(value)+" "+mUnit;
mValueText.setText(text);
if (!fromTouch) {
mSeekBar.setProgress(value - mMin);
}
|
public abstract java.lang.Integer | getParameter()
|
public void | onProgressChanged(android.widget.SeekBar seekBar, int progress, boolean fromTouch)
if (seekBar != mSeekBar) {
Log.e(TAG, "onProgressChanged called with wrong seekBar");
return;
}
int value = progress + mMin;
if (fromTouch) {
setParameter(value);
}
displayValue(getParameter(), fromTouch);
|
public void | onStartTrackingTouch(android.widget.SeekBar seekBar)
|
public void | onStopTrackingTouch(android.widget.SeekBar seekBar)
|
public abstract void | setEffect(java.lang.Object effect)
|
public void | setEnabled(boolean e)
mSeekBar.setEnabled(e);
|
public abstract void | setParameter(java.lang.Integer value)
|
public void | updateDisplay()
displayValue(getParameter(), false);
|