Class PlaySliderComponent

java.lang.Object
soundPlayback.swing.PlaySliderComponent
Direct Known Subclasses:
EnvelopeSlider, PlayFilterSlider, PlayGainSlider, PlaySpeedSlider

public abstract class PlaySliderComponent extends Object
Generic component that can be used for sliders in play control side panel bits
Author:
dg50
  • Constructor Details

    • PlaySliderComponent

      public PlaySliderComponent()
  • Method Details

    • getMinValue

      public abstract double getMinValue()
    • getMaxValue

      public abstract double getMaxValue()
    • getNSteps

      public abstract int getNSteps()
    • valueToPos

      public int valueToPos(double value)
      Convert a value to a slider position
      Parameters:
      real - value
      Returns:
      slider position (0 - getNSteps)
    • posToValue

      public double posToValue(int pos)
      Convert a slider position to a real value
      Parameters:
      pos - slider position (0 - getNSteps)
      Returns:
      real value
    • getSlider

      public PamSlider getSlider()
      Returns:
      the slider
    • getDataValue

      public double getDataValue()
      Get the scaled value of the slider
      Returns:
      the real scaled value
    • setDataValue

      public void setDataValue(double value)
      Set the scaled value of the slider
      Parameters:
      value - the scaled value.
    • addChangeListener

      public void addChangeListener(ChangeListener changeListener)
      Add a change listener.
      Parameters:
      changeListener -