Enum Class MultiThumbSliderUi.Thumb

java.lang.Object
java.lang.Enum<MultiThumbSliderUi.Thumb>
com.bric.multislider.MultiThumbSliderUi.Thumb
All Implemented Interfaces:
Serializable, Comparable<MultiThumbSliderUi.Thumb>, Constable
Enclosing class:
MultiThumbSliderUi<T>

public static enum MultiThumbSliderUi.Thumb extends Enum<MultiThumbSliderUi.Thumb>
A thumb shape.
  • Enum Constant Details

  • Method Details

    • values

      public static MultiThumbSliderUi.Thumb[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MultiThumbSliderUi.Thumb valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getShape

      public Shape getShape(MultiThumbSliderUi<?> sliderUI, float x, float y, int width, int height, boolean leftEdge, boolean rightEdge)
      Create a thumb that is centered at (0,0) for a horizontally oriented slider.
      Parameters:
      sliderUI - the slider UI this thumb relates to.
      x - the x-coordinate where this thumb is centered.
      y - the y-coordinate where this thumb is centered.
      width - the width of the the thumb (assuming this is a horizontal slider)
      height - the height of the the thumb (assuming this is a horizontal slider)
      leftEdge - true if this is the left-most thumb
      rightEdge - true if this is the right-most thumb.
      Returns:
      the shape of this thumb.
    • getShape

      public abstract Shape getShape(float width, float height, boolean leftEdge, boolean rightEdge)
      Create a thumb that is centered at (0,0) for a horizontally oriented slider.
      Parameters:
      width - the width of the the thumb (assuming this is a horizontal slider)
      height - the height of the the thumb (assuming this is a horizontal slider)
      leftEdge - true if this is the left-most thumb
      rightEdge - true if this is the right-most thumb.
      Returns:
      the shape of this thumb.