.. default-domain:: java .. highlight:: java .. package:: krpc.client.services.UI Slider ====== .. type:: public class Slider A control for choosing a number by dragging a handle along a track. Added to a :type:`Canvas` or a :type:`Panel`. | Base class: :type:`InputControl` .. container:: inherited-members .. rubric:: Inherited Members * From :type:`InputControl`: :meth:`getChanged `, :meth:`setChanged ` * From :type:`Control`: :meth:`getInteractable `, :meth:`setInteractable `, :meth:`getColor `, :meth:`setColor `, :meth:`getTooltip `, :meth:`setTooltip ` * From :type:`Object`: :meth:`getRectTransform `, :meth:`getLayoutElement `, :meth:`getVisible `, :meth:`setVisible `, :meth:`remove ` .. method:: float getValue() .. method:: void setValue(float value) The value of the slider, between :meth:`Slider.getMin()` and :meth:`Slider.getMax()`. Setting a value outside the range is refused. .. method:: float getMin() .. method:: void setMin(float value) The value at the low end of the slider, which is its left hand end, or the bottom of a vertical slider. Must not be greater than :meth:`Slider.getMax()`. .. method:: float getMax() .. method:: void setMax(float value) The value at the high end of the slider, which is its right hand end, or the top of a vertical slider. Must not be less than :meth:`Slider.getMin()`.