Package soundPlayback.swing
Class PlayFilterSlider
java.lang.Object
soundPlayback.swing.PlaySliderComponent
soundPlayback.swing.PlayFilterSlider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
double
int
double
posToValue
(int pos) Convert a slider position to a real valueint
valueToPos
(double filter) Convert a value to a slider positionMethods inherited from class soundPlayback.swing.PlaySliderComponent
addChangeListener, getDataValue, getSlider, setDataValue
-
Constructor Details
-
PlayFilterSlider
public PlayFilterSlider()
-
-
Method Details
-
valueToPos
public int valueToPos(double filter) Description copied from class:PlaySliderComponent
Convert a value to a slider position- Overrides:
valueToPos
in classPlaySliderComponent
- Returns:
- slider position (0 - getNSteps)
-
posToValue
public double posToValue(int pos) Description copied from class:PlaySliderComponent
Convert a slider position to a real value- Overrides:
posToValue
in classPlaySliderComponent
- Parameters:
pos
- slider position (0 - getNSteps)- Returns:
- real value
-
getMinValue
public double getMinValue()- Specified by:
getMinValue
in classPlaySliderComponent
-
getMaxValue
public double getMaxValue()- Specified by:
getMaxValue
in classPlaySliderComponent
-
getNSteps
public int getNSteps()- Specified by:
getNSteps
in classPlaySliderComponent
-