Class FloatOption

java.lang.Object
journeymap.api.v2.client.option.Option<Float>
journeymap.api.v2.client.option.FloatOption

public class FloatOption extends Option<Float>
  • Constructor Details

    • FloatOption

      public FloatOption(OptionCategory category, String fieldName, String label, Float defaultValue, float minValue, float maxValue)
      Creates a slider button of Float values
      Parameters:
      category - - The category;
      fieldName - - The fieldName;
      label - - The label, can be the display string or i18n key.
      defaultValue - - The default value
      minValue - - The min value
      maxValue - - The max value
    • FloatOption

      public FloatOption(OptionCategory category, String fieldName, String label, Float defaultValue, float minValue, float maxValue, float incrementValue, int precision)
      Creates a slider button of Float values
      Parameters:
      category - - The category;
      fieldName - - The fieldName;
      label - - The label, can be the display string or i18n key.
      defaultValue - - The default value
      minValue - - The min value
      maxValue - - The max value
      incrementValue - - The how much the value in incremented or decremented per click of the slider.
      precision - - Points of precision.
  • Method Details

    • getMinValue

      public float getMinValue()
    • getMaxValue

      public float getMaxValue()
    • getIncrementValue

      public float getIncrementValue()
    • getPrecision

      public int getPrecision()