Interface SliderBuilder

    • Method Detail

      • minorTickSpacing

        SliderBuilder minorTickSpacing​(int minorTickSpacing)
        Parameters:
        minorTickSpacing - the minor tick spacing
        Returns:
        this builder instance
      • majorTickSpacing

        SliderBuilder majorTickSpacing​(int majorTickSpacing)
        Parameters:
        majorTickSpacing - the major tick spacing
        Returns:
        this builder instance
      • snapToTicks

        SliderBuilder snapToTicks​(boolean snapToTicks)
        Parameters:
        snapToTicks - snap to ticks
        Returns:
        this builder instance
      • paintTicks

        SliderBuilder paintTicks​(boolean paintTicks)
        Parameters:
        paintTicks - paint ticks
        Returns:
        this builder instance
      • paintTrack

        SliderBuilder paintTrack​(boolean paintTrack)
        Parameters:
        paintTrack - paint track
        Returns:
        this builder instance
      • paintLabels

        SliderBuilder paintLabels​(boolean paintLabels)
        Parameters:
        paintLabels - paint labels
        Returns:
        this builder instance
      • inverted

        SliderBuilder inverted​(boolean inverted)
        Parameters:
        inverted - should the track be inverted
        Returns:
        this builder instance
      • orientation

        SliderBuilder orientation​(int orientation)
        Parameters:
        orientation - the orientation, SwingConstants.HORIZONTAL or SwingConstants.VERTICAL
        Returns:
        this builder instance
      • mouseWheelScrolling

        SliderBuilder mouseWheelScrolling​(boolean mouseWheelScrolling)
        Enable mouse wheel scrolling on the slider
        Parameters:
        mouseWheelScrolling - true if mouse wheel scrolling should be enabled
        Returns:
        this builder instance
      • mouseWheelScrollingReversed

        SliderBuilder mouseWheelScrollingReversed​(boolean mouseWheelScrollingReversed)
        Enable reversed mouse wheel scrolling on the slider
        Parameters:
        mouseWheelScrollingReversed - if true then up/away decreases the value and down/towards increases it.
        Returns:
        this builder instance
      • builder

        static SliderBuilder builder​(BoundedRangeModel boundedRangeModel)
        Parameters:
        boundedRangeModel - the slider model
        Returns:
        a builder for a component
      • builder

        static SliderBuilder builder​(BoundedRangeModel boundedRangeModel,
                                     Value<Integer> linkedValue)
        Parameters:
        boundedRangeModel - the slider model
        linkedValue - the value to link to the component
        Returns:
        a builder for a component