类 RangeSlider

  • 所有已实现的接口:
    ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

    public class RangeSlider
    extends JSlider
    An extension of JSlider to select a range of values using two thumb controls. The thumb controls are used to select the lower and upper value of a range with predetermined minimum and maximum values.

    Note that RangeSlider makes use of the default BoundedRangeModel, which supports an inner range defined by a value and an extent. The upper value returned by RangeSlider is simply the lower value plus the extent.

    另请参阅:
    序列化表格
    • 构造器详细资料

      • RangeSlider

        public RangeSlider()
        Constructs a RangeSlider with default minimum and maximum values of 0 and 100.
      • RangeSlider

        public RangeSlider​(int min,
                           int max)
        Constructs a RangeSlider with the specified default minimum and maximum values.
    • 方法详细资料

      • updateUI

        public void updateUI()
        Overrides the superclass method to install the UI delegate to draw two thumbs.
        覆盖:
        updateUI 在类中 JSlider
      • getValue

        public int getValue()
        Returns the lower value in the range.
        覆盖:
        getValue 在类中 JSlider
      • setValue

        public void setValue​(int value)
        Sets the lower value in the range.
        覆盖:
        setValue 在类中 JSlider
      • getUpperValue

        public int getUpperValue()
        Returns the upper value in the range.
      • setUpperValue

        public void setUpperValue​(int value)
        Sets the upper value in the range.