java.lang.Object
javafx.scene.control.SpinnerValueFactory<Double>
com.tlcsdm.core.javafx.control.UnboundedDoubleSpinnerValueFactory
public class UnboundedDoubleSpinnerValueFactory
extends javafx.scene.control.SpinnerValueFactory<Double>
A
SpinnerValueFactory implementation designed to iterate through
double values like SpinnerValueFactory.DoubleSpinnerValueFactory.
Unlike DoubleSpinnerValueFactory, this implementation handles the values
Double.NaN, Double.POSITIVE_INFINITY, and Double.NEGATIVE_INFINITY.
Note that the default converter is implemented as an
DoubleStringConverter instance.
- 作者:
- unknowIfGuestInDream
-
属性概要
属性类型属性说明final javafx.beans.property.DoublePropertySets the amount to increment or decrement by, per step.final javafx.beans.property.DoublePropertySets the maximum allowable value for this value factoryfinal javafx.beans.property.DoublePropertySets the minimum allowable value for this value factory从类继承的属性 javafx.scene.control.SpinnerValueFactory
converter, value, wrapAround -
嵌套类概要
从类继承的嵌套类/接口 javafx.scene.control.SpinnerValueFactory
javafx.scene.control.SpinnerValueFactory.DoubleSpinnerValueFactory, javafx.scene.control.SpinnerValueFactory.IntegerSpinnerValueFactory, javafx.scene.control.SpinnerValueFactory.ListSpinnerValueFactory<T> -
字段概要
字段修饰符和类型字段说明private javafx.beans.property.DoublePropertyprivate javafx.beans.property.DoublePropertyprivate final javafx.beans.property.DoubleProperty -
构造器概要
构造器构造器说明UnboundedDoubleSpinnerValueFactory(double min, double max) Constructs a new DoubleSpinnerValueFactory that sets the initial value to be equal to the min value, and a defaultamountToStepByof one.UnboundedDoubleSpinnerValueFactory(double min, double max, double initialValue) Constructs a new DoubleSpinnerValueFactory with a defaultamountToStepByof one.UnboundedDoubleSpinnerValueFactory(double min, double max, double initialValue, double amountToStepBy) Constructs a new DoubleSpinnerValueFactory. -
方法概要
修饰符和类型方法说明final javafx.beans.property.DoublePropertySets the amount to increment or decrement by, per step.voiddecrement(int steps) final double获取amountToStepBy属性的值。final doublegetMax()获取max属性的值。final doublegetMin()获取min属性的值。voidincrement(int steps) final javafx.beans.property.DoublePropertySets the maximum allowable value for this value factoryfinal javafx.beans.property.DoublePropertySets the minimum allowable value for this value factoryfinal voidsetAmountToStepBy(double value) 设置amountToStepBy属性的值。final voidsetMax(double value) 设置max属性的值。final voidsetMin(double value) 设置min属性的值。(专用程序包) static doublewrapValue(double value, double min, double max) 从类继承的方法 javafx.scene.control.SpinnerValueFactory
converterProperty, getConverter, getValue, isWrapAround, setConverter, setValue, setWrapAround, valueProperty, wrapAroundProperty
-
属性详细资料
-
min
public final javafx.beans.property.DoubleProperty minPropertySets the minimum allowable value for this value factory- 另请参阅:
-
max
public final javafx.beans.property.DoubleProperty maxPropertySets the maximum allowable value for this value factory- 另请参阅:
-
amountToStepBy
public final javafx.beans.property.DoubleProperty amountToStepByPropertySets the amount to increment or decrement by, per step.- 另请参阅:
-
-
字段详细资料
-
min
private final javafx.beans.property.DoubleProperty min -
max
private javafx.beans.property.DoubleProperty max -
amountToStepBy
private javafx.beans.property.DoubleProperty amountToStepBy
-
-
构造器详细资料
-
UnboundedDoubleSpinnerValueFactory
public UnboundedDoubleSpinnerValueFactory(double min, double max) Constructs a new DoubleSpinnerValueFactory that sets the initial value to be equal to the min value, and a defaultamountToStepByof one.- 参数:
min- The minimum allowed double value for the Spinner.max- The maximum allowed double value for the Spinner.
-
UnboundedDoubleSpinnerValueFactory
public UnboundedDoubleSpinnerValueFactory(double min, double max, double initialValue) Constructs a new DoubleSpinnerValueFactory with a defaultamountToStepByof one.- 参数:
min- The minimum allowed double value for the Spinner.max- The maximum allowed double value for the Spinner.initialValue- The value of the Spinner when first instantiated, must be within the bounds of the min and max arguments, or else the min value will be used.
-
UnboundedDoubleSpinnerValueFactory
public UnboundedDoubleSpinnerValueFactory(double min, double max, double initialValue, double amountToStepBy) Constructs a new DoubleSpinnerValueFactory.- 参数:
min- The minimum allowed double value for the Spinner.max- The maximum allowed double value for the Spinner.initialValue- The value of the Spinner when first instantiated, must be within the bounds of the min and max arguments, or else the min value will be used.amountToStepBy- The amount to increment or decrement by, per step.
-
-
方法详细资料
-
setMin
public final void setMin(double value) 设置min属性的值。- 属性说明:
- Sets the minimum allowable value for this value factory
- 参数:
value-min属性的值- 另请参阅:
-
getMin
public final double getMin()获取min属性的值。- 属性说明:
- Sets the minimum allowable value for this value factory
- 返回:
min属性的值- 另请参阅:
-
minProperty
public final javafx.beans.property.DoubleProperty minProperty()Sets the minimum allowable value for this value factory- 返回:
min属性- 另请参阅:
-
setMax
public final void setMax(double value) 设置max属性的值。- 属性说明:
- Sets the maximum allowable value for this value factory
- 参数:
value-max属性的值- 另请参阅:
-
getMax
public final double getMax()获取max属性的值。- 属性说明:
- Sets the maximum allowable value for this value factory
- 返回:
max属性的值- 另请参阅:
-
maxProperty
public final javafx.beans.property.DoubleProperty maxProperty()Sets the maximum allowable value for this value factory- 返回:
max属性- 另请参阅:
-
setAmountToStepBy
public final void setAmountToStepBy(double value) 设置amountToStepBy属性的值。- 属性说明:
- Sets the amount to increment or decrement by, per step.
- 参数:
value-amountToStepBy属性的值- 另请参阅:
-
getAmountToStepBy
public final double getAmountToStepBy()获取amountToStepBy属性的值。- 属性说明:
- Sets the amount to increment or decrement by, per step.
- 返回:
amountToStepBy属性的值- 另请参阅:
-
amountToStepByProperty
public final javafx.beans.property.DoubleProperty amountToStepByProperty()Sets the amount to increment or decrement by, per step.- 返回:
amountToStepBy属性- 另请参阅:
-
decrement
public void decrement(int steps) - 指定者:
decrement在类中javafx.scene.control.SpinnerValueFactory<Double>
-
increment
public void increment(int steps) - 指定者:
increment在类中javafx.scene.control.SpinnerValueFactory<Double>
-
wrapValue
static double wrapValue(double value, double min, double max)
-