All Superinterfaces:
ComponentBuilder<Integer,JSlider,SliderBuilder>

public interface SliderBuilder extends ComponentBuilder<Integer,JSlider,SliderBuilder>
A builder for JSpinner
  • Method Details

    • minorTickSpacing

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

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

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

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

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

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

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

      SliderBuilder orientation(int orientation)
      Parameters:
      orientation - the orientation, SwingConstants.HORIZONTAL or SwingConstants.VERTICAL
      Returns:
      this builder instance
      See Also:
    • 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