Class PercentSliderDescriptor

java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Double>
com.motivewave.platform.sdk.common.desc.PercentSliderDescriptor

public class PercentSliderDescriptor extends SettingDescriptor<Double>
  • Constructor Details

    • PercentSliderDescriptor

      public PercentSliderDescriptor(String name, String label, double defaultValue)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      defaultValue - default percent value (0d - 1d)
    • PercentSliderDescriptor

      public PercentSliderDescriptor(String name, String label, double minValue, double defaultValue)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      minValue - minimum value (0d - 1d)
      defaultValue - default percent value (0d - 1d)
    • PercentSliderDescriptor

      public PercentSliderDescriptor(String name, String label, double defaultValue, IconFactory fact)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      defaultValue - default percent value (0d - 1d)
      fact - icon factory for the tool bar
    • PercentSliderDescriptor

      public PercentSliderDescriptor(String name, String label, double minValue, double defaultValue, IconFactory fact)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      minValue - minimum value (0d - 1d)
      defaultValue - default percent value (0d - 1d)
      fact - icon factory for the tool bar
  • Method Details

    • getDefaultValue

      public Double getDefaultValue()
      Gets the default value for this setting.
      Overrides:
      getDefaultValue in class SettingDescriptor<Double>
      Returns:
      default value for the setting
    • createInputFX

      public javafx.scene.Node createInputFX(Settings settings, boolean readOnly)
      Description copied from class: SettingDescriptor
      Creates the component that will accept the user input. This is called by the study framework.
      Specified by:
      createInputFX in class SettingDescriptor<Double>
      Parameters:
      settings - settings for the study
      readOnly - true if the component should not accept user input
      Returns:
      component that will accept user input.
    • createTBInput

      public javafx.scene.Node createTBInput(Settings settings)
      Description copied from class: SettingDescriptor
      Creates a version of the input that can be displayed in a tool bar.
      Overrides:
      createTBInput in class SettingDescriptor<Double>
      Parameters:
      settings - settings for the study
      Returns:
      component that will accept user input.
    • getMinValue

      public double getMinValue()
    • fromJson

      public Object fromJson(Object json)
      Overrides:
      fromJson in class SettingDescriptor<Double>