Class DynamicHueSlider

All Implemented Interfaces:
Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback, BaseWidget, DynamicProgressWidget, DynamicWidget

public class DynamicHueSlider extends DynamicSlider
A DynamicSlider to provide a hue bar for the color picker.
  • Constructor Details

  • Method Details

    • onSizeChanged

      protected void onSizeChanged(int w, int h, int oldw, int oldh)
    • onDraw

      protected void onDraw(@NonNull Canvas canvas)
    • setProgressBarColor

      public void setProgressBarColor()
      Description copied from interface: DynamicProgressWidget
      Set progress bar color according to the supplied values.
      Specified by:
      setProgressBarColor in interface DynamicProgressWidget
      Overrides:
      setProgressBarColor in class DynamicSlider
    • getValueFrom

      public float getValueFrom()
    • setValueFrom

      public void setValueFrom(float arg0)
    • getValueTo

      public float getValueTo()
    • setValueTo

      public void setValueTo(float arg0)
    • getStepSize

      public float getStepSize()
    • setStepSize

      public void setStepSize(float arg0)
    • getFocusedThumbIndex

      public int getFocusedThumbIndex()
    • setFocusedThumbIndex

      public void setFocusedThumbIndex(int arg0)
    • setActiveThumbIndex

      protected void setActiveThumbIndex(int arg0)
    • getActiveThumbIndex

      public int getActiveThumbIndex()
    • addOnChangeListener

      public void addOnChangeListener(@NonNull Slider.OnChangeListener arg0)
    • removeOnChangeListener

      public void removeOnChangeListener(@NonNull Slider.OnChangeListener arg0)
    • clearOnChangeListeners

      public void clearOnChangeListeners()
    • addOnSliderTouchListener

      public void addOnSliderTouchListener(@NonNull Slider.OnSliderTouchListener arg0)
    • removeOnSliderTouchListener

      public void removeOnSliderTouchListener(@NonNull Slider.OnSliderTouchListener arg0)
    • clearOnSliderTouchListeners

      public void clearOnSliderTouchListeners()
    • hasLabelFormatter

      public boolean hasLabelFormatter()
    • setLabelFormatter

      public void setLabelFormatter(@Nullable LabelFormatter arg0)
    • getThumbElevation

      public float getThumbElevation()
    • setThumbElevation

      public void setThumbElevation(float arg0)
    • setThumbElevationResource

      public void setThumbElevationResource(@DimenRes int arg0)
    • getThumbRadius

      @Px public int getThumbRadius()
    • setThumbRadius

      public void setThumbRadius(@IntRange(from=0L) @Px int arg0)
    • setThumbRadiusResource

      public void setThumbRadiusResource(@DimenRes int arg0)
    • getThumbWidth

      @Px public int getThumbWidth()
    • setThumbWidth

      public void setThumbWidth(@IntRange(from=0L) @Px int arg0)
    • setThumbWidthResource

      public void setThumbWidthResource(@DimenRes int arg0)
    • getThumbHeight

      @Px public int getThumbHeight()
    • setThumbHeight

      public void setThumbHeight(@IntRange(from=0L) @Px int arg0)
    • setThumbHeightResource

      public void setThumbHeightResource(@DimenRes int arg0)
    • setThumbStrokeColor

      public void setThumbStrokeColor(@Nullable ColorStateList arg0)
    • setThumbStrokeColorResource

      public void setThumbStrokeColorResource(@ColorRes int arg0)
    • getThumbStrokeColor

      public ColorStateList getThumbStrokeColor()
    • setThumbStrokeWidth

      public void setThumbStrokeWidth(float arg0)
    • setThumbStrokeWidthResource

      public void setThumbStrokeWidthResource(@DimenRes int arg0)
    • getThumbStrokeWidth

      public float getThumbStrokeWidth()
    • getHaloRadius

      @Px public int getHaloRadius()
    • setHaloRadius

      public void setHaloRadius(@IntRange(from=0L) @Px int arg0)
    • setHaloRadiusResource

      public void setHaloRadiusResource(@DimenRes int arg0)
    • getLabelBehavior

      public int getLabelBehavior()
    • setLabelBehavior

      public void setLabelBehavior(int arg0)
    • getTrackSidePadding

      @Px public int getTrackSidePadding()
    • getTrackWidth

      @Px public int getTrackWidth()
    • getTrackHeight

      @Px public int getTrackHeight()
    • setTrackHeight

      public void setTrackHeight(@IntRange(from=0L) @Px int arg0)
    • getTickActiveRadius

      @Px public int getTickActiveRadius()
    • setTickActiveRadius

      public void setTickActiveRadius(@IntRange(from=0L) @Px int arg0)
    • getTickInactiveRadius

      @Px public int getTickInactiveRadius()
    • setTickInactiveRadius

      public void setTickInactiveRadius(@IntRange(from=0L) @Px int arg0)
    • getHaloTintList

      @NonNull public ColorStateList getHaloTintList()
    • setHaloTintList

      public void setHaloTintList(@NonNull ColorStateList arg0)
    • getThumbTintList

      @NonNull public ColorStateList getThumbTintList()
    • setThumbTintList

      public void setThumbTintList(@NonNull ColorStateList arg0)
    • getTickTintList

      @NonNull public ColorStateList getTickTintList()
    • setTickTintList

      public void setTickTintList(@NonNull ColorStateList arg0)
    • getTickActiveTintList

      @NonNull public ColorStateList getTickActiveTintList()
    • setTickActiveTintList

      public void setTickActiveTintList(@NonNull ColorStateList arg0)
    • getTickInactiveTintList

      @NonNull public ColorStateList getTickInactiveTintList()
    • setTickInactiveTintList

      public void setTickInactiveTintList(@NonNull ColorStateList arg0)
    • isTickVisible

      public boolean isTickVisible()
    • setTickVisible

      public void setTickVisible(boolean arg0)
    • getTrackTintList

      @NonNull public ColorStateList getTrackTintList()
    • setTrackTintList

      public void setTrackTintList(@NonNull ColorStateList arg0)
    • getTrackActiveTintList

      @NonNull public ColorStateList getTrackActiveTintList()
    • setTrackActiveTintList

      public void setTrackActiveTintList(@NonNull ColorStateList arg0)
    • getTrackInactiveTintList

      @NonNull public ColorStateList getTrackInactiveTintList()
    • setTrackInactiveTintList

      public void setTrackInactiveTintList(@NonNull ColorStateList arg0)
    • getThumbTrackGapSize

      public int getThumbTrackGapSize()
    • setThumbTrackGapSize

      public void setThumbTrackGapSize(@Px int arg0)
    • getTrackStopIndicatorSize

      public int getTrackStopIndicatorSize()
    • setTrackStopIndicatorSize

      public void setTrackStopIndicatorSize(@Px int arg0)
    • getTrackInsideCornerSize

      public int getTrackInsideCornerSize()
    • setTrackInsideCornerSize

      public void setTrackInsideCornerSize(@Px int arg0)
    • onVisibilityChanged

      protected void onVisibilityChanged(@NonNull View arg0, int arg1)
      Overrides:
      onVisibilityChanged in class View
    • onAttachedToWindow

      protected void onAttachedToWindow()
      Overrides:
      onAttachedToWindow in class View
    • onDetachedFromWindow

      protected void onDetachedFromWindow()
      Overrides:
      onDetachedFromWindow in class View
    • onMeasure

      protected void onMeasure(int arg0, int arg1)
      Overrides:
      onMeasure in class View
    • onTouchEvent

      public boolean onTouchEvent(@NonNull MotionEvent arg0)
      Overrides:
      onTouchEvent in class View
    • setSeparationUnit

      protected void setSeparationUnit(int arg0)
    • getMinSeparation

      protected float getMinSeparation()
    • drawableStateChanged

      protected void drawableStateChanged()
      Overrides:
      drawableStateChanged in class View
    • onKeyDown

      public boolean onKeyDown(int arg0, @NonNull KeyEvent arg1)
      Specified by:
      onKeyDown in interface KeyEvent.Callback
      Overrides:
      onKeyDown in class View
    • onKeyUp

      public boolean onKeyUp(int arg0, @NonNull KeyEvent arg1)
      Specified by:
      onKeyUp in interface KeyEvent.Callback
      Overrides:
      onKeyUp in class View
    • onFocusChanged

      protected void onFocusChanged(boolean arg0, int arg1, @Nullable Rect arg2)
      Overrides:
      onFocusChanged in class View
    • getAccessibilityClassName

      @NonNull public CharSequence getAccessibilityClassName()
      Overrides:
      getAccessibilityClassName in class View
    • dispatchHoverEvent

      public boolean dispatchHoverEvent(@NonNull MotionEvent arg0)
      Overrides:
      dispatchHoverEvent in class View
    • dispatchKeyEvent

      public boolean dispatchKeyEvent(@NonNull KeyEvent arg0)
      Overrides:
      dispatchKeyEvent in class View
    • onSaveInstanceState

      protected Parcelable onSaveInstanceState()
      Overrides:
      onSaveInstanceState in class View
    • onRestoreInstanceState

      protected void onRestoreInstanceState(Parcelable arg0)
      Overrides:
      onRestoreInstanceState in class View