Annotation Interface RangeSlider


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface RangeSlider
A slider with two handles selecting a start and end pair within min() and max()
The annotated field holds both ends together as a two-element numeric array or list such as float[] or int[] or List<Integer> where index 0 is the start and index 1 is the end
Values are written back in whatever container shape the field already holds so its type is preserved
  • Element Details

    • title

      String title
    • description

      String description
      Default:
      ""
    • icon

      String icon
      Default:
      ""
    • category

      String category
      Default:
      "General"
    • subcategory

      String subcategory
      Default:
      "General"
    • min

      float min
      Default:
      0.0f
    • max

      float max
      Default:
      100.0f
    • step

      float step
      Default:
      1.0f
    • formatter

      Class<? extends ValueFormatter> formatter
      Default:
      org.polyfrost.oneconfig.api.config.v1.ValueFormatter.class
    • bounds

      Class<? extends SliderBounds> bounds
      Default:
      org.polyfrost.oneconfig.api.config.v1.SliderBounds.class