Enum MultiThumbSliderUI.Thumb

    • Method Detail

      • values

        public static MultiThumbSliderUI.Thumb[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MultiThumbSliderUI.Thumb c : MultiThumbSliderUI.Thumb.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MultiThumbSliderUI.Thumb valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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.