src/main/java/com/spinyowl/legui/component/Slider.java
private void initialize(float value) {
    this.value = value;
    getStyle().getBackground().setColor(ColorConstants.transparent());
    getStyle().setBorder(null);
    getListenerMap().addListener(ScrollEvent.class, new SliderScrollEventListener());
    getListenerMap().addListener(MouseClickEvent.class, new SliderMouseClickEventListener());
    getListenerMap().addListener(MouseDragEvent.class, new SliderMouseDragEventListener());
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(Slider.class).applyAll(this);
  }
/**
   * Used to initialize slider with predefined value.
   *
   * @param value value to set.
   */
Used to initialize slider with predefined value.
@param value value to set.
Used to initialize slider with predefined value . @param value value to set .
private void initialize(float value) {
    this.value = value;
    getStyle().getBackground().setColor(ColorConstants.transparent());
    getStyle().setBorder(null);
    getListenerMap().addListener(ScrollEvent.class, new SliderScrollEventListener());
    getListenerMap().addListener(MouseClickEvent.class, new SliderMouseClickEventListener());
    getListenerMap().addListener(MouseDragEvent.class, new SliderMouseDragEventListener());
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(Slider.class).applyAll(this);
  }
private void initialize ( float value ) { this . value = value ; getStyle ( ) . getBackground ( ) . setColor ( ColorConstants . transparent ( ) ) ; getStyle ( ) . setBorder ( null ) ; getListenerMap ( ) . addListener ( ScrollEvent . class , new SliderScrollEventListener ( ) ) ; getListenerMap ( ) . addListener ( MouseClickEvent . class , new SliderMouseClickEventListener ( ) ) ; getListenerMap ( ) . addListener ( MouseDragEvent . class , new SliderMouseDragEventListener ( ) ) ; Themes . getDefaultTheme ( ) . getThemeManager ( ) . getComponentTheme ( Slider . class ) . applyAll ( this ) ; }
Used to initialize slider with predefined value.
Used to initialize slider with predefined value .