类 UnboundedDoubleSpinnerValueFactory

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.DoubleProperty
    Sets the amount to increment or decrement by, per step.
    final javafx.beans.property.DoubleProperty
    Sets the maximum allowable value for this value factory
    final javafx.beans.property.DoubleProperty
    Sets 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.DoubleProperty
     
    private javafx.beans.property.DoubleProperty
     
    private 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 default amountToStepBy of one.
    UnboundedDoubleSpinnerValueFactory(double min, double max, double initialValue)
    Constructs a new DoubleSpinnerValueFactory with a default amountToStepBy of one.
    UnboundedDoubleSpinnerValueFactory(double min, double max, double initialValue, double amountToStepBy)
    Constructs a new DoubleSpinnerValueFactory.
  • 方法概要

    修饰符和类型
    方法
    说明
    final javafx.beans.property.DoubleProperty
    Sets the amount to increment or decrement by, per step.
    void
    decrement(int steps)
    final double
    获取amountToStepBy属性的值。
    final double
    获取max属性的值。
    final double
    获取min属性的值。
    void
    increment(int steps)
    final javafx.beans.property.DoubleProperty
    Sets the maximum allowable value for this value factory
    final javafx.beans.property.DoubleProperty
    Sets the minimum allowable value for this value factory
    final void
    setAmountToStepBy(double value)
    设置amountToStepBy属性的值。
    final void
    setMax(double value)
    设置max属性的值。
    final void
    setMin(double value)
    设置min属性的值。
    (专用程序包) static double
    wrapValue(double value, double min, double max)
     

    从类继承的方法 javafx.scene.control.SpinnerValueFactory

    converterProperty, getConverter, getValue, isWrapAround, setConverter, setValue, setWrapAround, valueProperty, wrapAroundProperty

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 属性详细资料

  • 字段详细资料

    • 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 default amountToStepBy of 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 default amountToStepBy of 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)