Class SliderOptionUI<T extends Option<java.lang.Integer>>

    • Field Detail

      • slider

        private final javax.swing.JSlider slider
    • Constructor Detail

      • SliderOptionUI

        public SliderOptionUI​(T option,
                              boolean editable)
        Creates a new SliderOptionUI for the given IntegerOption.
        Parameters:
        option - The IntegerOption to make a user interface for.
        editable - boolean whether user can modify the setting
    • Method Detail

      • getJLabel

        public final javax.swing.JLabel getJLabel()
        Overrides:
        getJLabel in class OptionUI<T extends Option<java.lang.Integer>>
      • getComponent

        public javax.swing.JSlider getComponent()
        Get the Component used to set the value of the Option.
        Specified by:
        getComponent in class OptionUI<T extends Option<java.lang.Integer>>
        Returns:
        a JComponent value
      • reset

        public void reset()
        Reset the value of the UI's component from the Option.
        Specified by:
        reset in interface OptionUpdater
        Specified by:
        reset in class OptionUI<T extends Option<java.lang.Integer>>