Package journeymap.api.v2.client.option
Class FloatOption
-
Field Summary
Fields inherited from class journeymap.api.v2.client.option.Option
config, defaultValue -
Constructor Summary
ConstructorsConstructorDescriptionFloatOption(OptionCategory category, String fieldName, String label, Float defaultValue, float minValue, float maxValue) Creates a slider button of Float valuesFloatOption(OptionCategory category, String fieldName, String label, Float defaultValue, float minValue, float maxValue, float incrementValue, int precision) Creates a slider button of Float values -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatfloatintMethods inherited from class journeymap.api.v2.client.option.Option
get, getCategory, getDefaultValue, getFieldName, getLabel, getSortOrder, set, setSortOrder
-
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 valueminValue- - The min valuemaxValue- - 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 valueminValue- - The min valuemaxValue- - The max valueincrementValue- - 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()
-